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 product_status = 'active' ORDER BY product_order ASC' at line 1SELECT * FROM tbl_product WHERE product_product_category_id = AND product_status = 'active' ORDER BY product_order ASC