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 MariaDB server version for the right syntax to use near 'WHERE status = 'SIM'' at line 1' in /home/grupo/public_html/includes/Database.php:65 Stack trace: #0 /home/grupo/public_html/includes/Database.php(65): PDOStatement->execute() #1 /home/grupo/public_html/includes/Database.php(76): Database->execute() #2 /home/grupo/public_html/includes/SQL.php(86): Database->resultset() #3 /home/grupo/public_html/listaPublicacoes.php(49): SQL::query('SELECT * FROM ...', Array) #4 {main}