Fatal error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY p.ativo DESC, p.ordem ASC' at line 1 - SELECT DISTINCT(p.id_produtos), p.* FROM tb_produtos p WHERE ativo=1 AND id_marcas= ORDER BY p.ativo DESC, p.ordem ASC in /var/www/ottovinhos.com.br/classes/banco.class.php on line 96