Query error:
SELECT a.* FROM _ctl_articulos a, _ctl_categorias t, _ctl_proveedores p WHERE a.categoria = '34' ANDa.categoria = t.id AND UPPER(a.codigo_proveedor) = UPPER(p.codigo) AND a.publicar = '1' AND t.publicar = '1' AND p.active = 1 AND a.destacado = '1' ORDER BY a.precio, a.id LIMIT 5
[1064: 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 'ANDa.categoria = t.id AND UPPER(a.codigo_proveedor) = UPPER(p.codigo) AND a.pub' at line 1]