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 DESC LIMIT 1' at line 17 /** Time: 1634728009 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.titulo,c.texto,c.galeria, (SELECT caminho FROM sig_ged WHERE modulo = 'conteudos 1.0' AND idModulo = 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 = WHERE c.status ='Ativo' AND cc.categoriaConteudo='519' AND = ORDER BY DESC LIMIT 1