Erro ao executar consulta 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 c.id DESC LIMIT 1' at line 17 /** Time: 1601311627 Id Usuário: 1 Trace: #/var/zpanel/hostdata/zadmin/public_html/girusdiscoshow_com_br/pages/galeria-de-fotos.php [28] #/var/zpanel/hostdata/zadmin/public_html/girusdiscoshow_com_br/index.php [162] **/ SELECT c.id,c.titulo,c.texto,c.galeria, (SELECT caminho FROM sig_ged WHERE modulo = 'conteudos 1.0' AND idModulo = c.id AND comentario = 'banner' ORDER BY id DESC LIMIT 1) AS banner FROM sig_conteudos AS c LEFT JOIN sig_conteudos_categorias AS cc ON cc.idConteudo = c.id WHERE c.status ='Ativo' AND cc.categoriaConteudo='519' AND c.id = ORDER BY c.id DESC LIMIT 1