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 'WHERE prod.active != 0 GROUP BY prod.id ORDER BY prod.position, prod.name ASC LI' at line 11