MySQL returned error




Error Description :
Error No : 1064
Description : 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 product.product_model ORDER BY product.product_name ASC' at line 1

SQL Query
SELECT COUNT(product.id) AS CNT FROM `product` WHERE id!=0 AND status='Active' AND category_id=199 AND subcategory_id= GROUP BY product.product_model ORDER BY product.product_name ASC