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 disponivel = 1 ORDER BY id DESC LIMIT 1' at line 1' in /home/colegioequipejf/public_html/comuns/classes/DAO/DAO_Base.php:115 Stack trace: #0 /home/colegioequipejf/public_html/comuns/classes/DAO/DAO_Base.php(115): PDOStatement->execute(Array) #1 /home/colegioequipejf/public_html/comuns/classes/DAO/DAO_Noticias_Arquivos.php(36): DAO_Base->execute(Object(PDOStatement), Array) #2 /home/colegioequipejf/public_html/noticias-internas.php(8): DAO_Noticias_Arquivos->selectArquivo(NULL) #3 {main} thrown in /home/colegioequipejf/public_html/comuns/classes/DAO/DAO_Base.php on line 115