ERROR

Could not connect to Database server!
Couldn't query this query string:Select Product_id From ta_product Where 1 and product_category_id= and product_id <> 0
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_id <> 0' at line 1