Fatal error: Uncaught exception 'PDOException' with message '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 'AND mes =10 AND ano=2017 ORDER BY id DESC LIMIT 0,18' at line 1' in /home/paracatu/www/config/crud-pdo.php:140 Stack trace: #0 /home/paracatu/www/config/crud-pdo.php(140): PDO->query('SELECT * FROM p...') #1 /home/paracatu/www/files/noticias.php(51): crud->rawSelect('SELECT * FROM p...') #2 /home/paracatu/www/index.php(95): include('/home/paracatu/...') #3 {main} thrown in /home/paracatu/www/config/crud-pdo.php on line 140