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 '' at line 8

select p.id,p.`name`,p.name_slug,p.catid,p.subcatid,p.brandid,p.code,p.type,p.class,p.desc,p.brochure,p.spec,p.features,p.manual, ct.cat,ct.cat_ar,sct.subcat,sct.subcat_ar,ast.name image,bd.brand,bd.logo,bd.brand_ar from products p left join category ct on (p.catid=ct.id) left join subcategory sct on (p.subcatid=sct.id) left join assets ast on (p.id=ast.section_id and ast.state=1) left join brands bd on (p.brandid=bd.id) where p.state=1 and p.id=

Filename: models/Products_model.php

Line Number: 101