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
gfoto.status = 1 AND
foto.status = 1
ORDER BY gfoto.ordem ASC,' at line 11' in /home/storage/a/15/b2/defaconstrutora1/public_html/class/_painel/funcoes.php:105
Stack trace:
#0 /home/storage/a/15/b2/defaconstrutora1/public_html/class/_painel/funcoes.php(105): PDO->query('\n\t\t\t\tSELECT\n\t\t\t...')
#1 /home/storage/a/15/b2/defaconstrutora1/public_html/class/_painel/funcoes.php(304): FuncoesPainel->galeria('lancamento', 24, NULL, 'fotos')
#2 /home/storage/a/15/b2/defaconstrutora1/public_html/class/_painel/lancamentos.php(45): FuncoesPainel->detalhes('lancamento', 24, 'SELECT lan.*, I...', Array)
#3 /home/storage/a/15/b2/defaconstrutora1/public_html/painel_lancamentos_detalhes.php(18): Lancamentos->detalhes('1302')
#4 /home/storage/a/15/b2/defaconstrutora1/p in /home/storage/a/15/b2/defaconstrutora1/public_html/class/_painel/funcoes.php on line 105