Notice: Undefined variable: total_rows in /var/www/html/cms2/list.php on line 22

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-12,12' at line 1 in /var/www/html/cms2/class/DB.class.php:133 Stack trace: #0 /var/www/html/cms2/class/DB.class.php(133): PDO->prepare('SELECT id,title...') #1 /var/www/html/cms2/class/DB.class.php(161): DB->_doQuery('SELECT id,title...') #2 /var/www/html/cms2/list.php(25): DB->doSql('SELECT id,title...') #3 {main} thrown in /var/www/html/cms2/class/DB.class.php on line 133