SELECT id,nombre,contgt FROM tbl_productos WHERE categoria= AND publicat=1 AND idioma='ca' ORDER BY ordre ASC - 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 'AND publicat=1 AND idioma='ca' ORDER BY ordre ASC' at line 3