Error
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 mi.idioma_id=1 and p.version=1' at line 1
select count(*) from modelo as m left join modelo_idioma as mi on m.id = mi.modelo_id left join producto as p on m.producto_id=p.id left join modelo_estado as me ON m.estado_id = me.id left join catalogo as c on p.catalogo_id=c.id where c.id_empresa = and mi.idioma_id=1 and p.version=1