mySQL Error (1064): 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 '' at line 8 Error occurred while running query: SELECT count(styles.id_style) as estilos
FROM
styles
LEFT JOIN models ON models.id_model = styles.id_model
WHERE
styles.active = 1
AND styles.deleted = 0
AND styles.id_model =