Database error: select

Message: SQLSTATE[42000]: Syntax error or access violation: 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 '-1, 1' at line 1 File: /hdd2/kinogaller/domains/kinogallery.com/public_html/inc/config.php (Line 123) #0 /hdd2/kinogaller/domains/kinogallery.com/public_html/inc/config.php(123): PDOStatement->execute(NULL) #1 /hdd2/kinogaller/domains/kinogallery.com/public_html/inc/config.php(117): DB->_select('SELECT * FROM i...', NULL) #2 /hdd2/kinogaller/domains/kinogallery.com/public_html/image/index.php(71): DB->fetchAll('SELECT * FROM i...') #3 /hdd2/kinogaller/domains/kinogallery.com/public_html/image/index.php(143): frame('icomewiththerai...', 2, 'photos', '\xD0\xAF \xD0\xBF\xD1\x80\xD0\xB8\xD1\x85\xD0\xBE\xD0\xB6...', NULL) #4 {main}