Se produjo un error al acceder a la base de datos 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 p.id=174 order by p.nombre' at line 1 select concat(p.nombre," - ",c.nombre) as nombre from producto as p, catalogo as c where p.catalogo_id=c.id and c.id_empresa= and p.id=174 order by p.nombre