Fatal error: Uncaught Exception: Erro ao executar a query: SELECT * FROM empreendimento_imagem WHERE 1 AND id_empreendimento = ORDER BY ordem ASC Error: 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 'ORDER BY ordem ASC' at line 1 in /var/www/clients/client65/web114/web/class/util/DB.php:276 Stack trace: #0 /var/www/clients/client65/web114/web/planner/application/empreendimento_imagem/class/SqlEmpreendimento_imagem.php(41): DB->getArrayBySelect('SELECT * FROM e...') #1 /var/www/clients/client65/web114/web/site/empreendimentos-detalhes.php(23): SqlEmpreendimento_imagem::_lista(Array, NULL, 'ordem ASC') #2 /var/www/clients/client65/web114/web/site/empreendimentos.php(4): include('/var/www/client...') #3 /var/www/clients/client65/web114/web/index.php(85): include_once('/var/www/client...') #4 {main} thrown in /var/www/clients/client65/web114/web/class/util/DB.php on line 276