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 nm_sel_esp' at line 1
select count(*) from (select distinct, composicion.modelo_id, composicion.codigo, modelo_idioma.nombre from composicion LEFT JOIN modelo_idioma ON composicion.modelo_id=modelo_idioma.modelo_id left join modelo as m on left join producto as p on m.producto_id = left join catalogo as c on p.catalogo_id= where c.id_empresa= and nm_sel_esp