Error Number: 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 Download.`idioma` = 'es' ORDER BY `produto_nome_pt` ASC' at line 12
SELECT Download.`id`, Download.`id_produto`, Download.`arquivo`, Download.`idioma`, Download.`categoria_download`, Produto.`id`, Produto.`path`, Produto.`nome-es` as `produto_nome_pt`, Produto.`url_nome`, Produto.`categoria`, Categoria.`nome-es` as `categoria_nome` FROM `gercont_produtos_download` as Download INNER JOIN `gercont_produtos` as Produto ON Produto.`id`=Download.`id_produto` INNER JOIN `gercont_downloads_categorias` as Categoria ON Categoria.`id` = Download.`categoria_download` WHERE Produto.`id`= AND Download.`idioma` = 'es' ORDER BY `produto_nome_pt` ASC
Filename: /var/www/html/views/catalogo/detalhes.php
Line Number: 386