SELECT CO.url, CO.titulo, AR.arquivo FROM conteudos CO INNER JOIN conteudos_indices CI ON CO.id=CI.id_conteudo INNER JOIN arquivos AR ON CO.id=AR.id_conteudo WHERE CO.status_conteudo = 1 AND CI.id_indice = 3 AND AR.id_arquivos_conf = 7 AND CO.id <> ORDER BY CO.id DESC LIMIT 3

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 CO.id DESC LIMIT 3' at line 1
Alegria dos Pinhais

EUA

Inglês

BR

Português do Brasil