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 ( (c.catalogo_padre_id=149 or c.catalogo_padre_id=161 ) and p.version!=2 an' 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 catalogo as c on p.catalogo_id=c.id where c.id_empresa = and ( (c.catalogo_padre_id=149 or c.catalogo_padre_id=161 ) and p.version!=2 and p.version!=1 and mi.idioma_id=1 and p.fecha_version <= curdate() ) |