SQL Error: SELECT p.* FROM product AS p INNER JOIN item AS i ON i.product = p.id WHERE p.active = 1&& category= GROUP BY p.id ORDER BY p.name ASC LIMIT 0,100
Array
(
    [0] => 42000
    [1] => 1064
    [2] => 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 'GROUP BY p.id ORDER BY p.name ASC LIMIT 0,100' at line 4
)