A Database Error Occurred

Error Number: 1064

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 p.section_id=0 and p.product_status = 2 and p.product_material IS NOT NULL a' at line 1

SELECT DISTINCT p.product_material from products p, seller l where p.seller_id = l.seller_id and p.cat_id = and p.section_id=0 and p.product_status = 2 and p.product_material IS NOT NULL and p.product_material <> '' and p.product_material <> 'No'

Filename: /var/www/html/greenhandle/controllers/catalog.php

Line Number: 592