Fatal error: Uncaught ADODB_Exception: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-32,32' at line 1] in EXECUTE("SELECT photos.*, category.cat_title, category.cat_id FROM gallery_photos photos LEFT JOIN gallery_category_relations relation ON (photos.gp_id = relation.rel_element_id) LEFT JOIN gallery_categories category ON (category.cat_id = relation.rel_category_id) WHERE category.cat_id in ( 28) GROUP BY photos.gp_id ORDER BY photos.gp_sort ASC, photos.gp_id DESC LIMIT -32,32") in /home/server784794/ftp/system/classes/adodb5/adodb-exceptions.inc.php:80 Stack trace: #0 /home/server784794/ftp/system/classes/adodb5/adodb.inc.php(1264): adodb_throw('mysqli', 'EXECUTE', 1064, 'You have an err...', 'SELECT photos.*...', false, Object(ADODB_mysqli)) #1 /home/server784794/ftp/system/classes/adodb5/adodb.inc.php(1228): ADOConnection->_Execute('SELECT photos.*...', false) #2 /home/server784794/ftp/system/classes/adodb in /home/server784794/ftp/system/classes/adodb5/adodb-exceptions.inc.php on line 80
[ErrCode:1] Uncaught ADODB_Exception: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-32,32' at line 1] in EXECUTE("SELECT photos.*, category.cat_title, category.cat_id FROM gallery_photos photos LEFT JOIN gallery_category_relations relation ON (photos.gp_id = relation.rel_element_id) LEFT JOIN gallery_categories category ON (category.cat_id = relation.rel_category_id) WHERE category.cat_id in ( 28) GROUP BY photos.gp_id ORDER BY photos.gp_sort ASC, photos.gp_id DESC LIMIT -32,32") in /home/server784794/ftp/system/classes/adodb5/adodb-exceptions.inc.php:80 Stack trace: #0 /home/server784794/ftp/system/classes/adodb5/adodb.inc.php(1264): adodb_throw('mysqli', 'EXECUTE', 1064, 'You have an err...', 'SELECT photos.*...', false, Object(ADODB_mysqli)) #1 /home/server784794/ftp/system/classes/adodb5/adodb.inc.php(1228): ADOConnection->_Execute('SELECT photos.*...', false) #2 /home/server784794/ftp/system/classes/adodb at SYSTEM_PATH/classes/adodb5/adodb-exceptions.inc.php [ at line: 80 ]

Array