1064: SELECT p.id,p.title,p.alt2,p.thumb,p.short, p.price,pc.category as catetitle FROM products p INNER JOIN productcategories pc ON p.category=pc.id INNER JOIN addedfilters ad ON p.id=ad.p_id WHERE (ad.s_id=) AND (ad.pc=1) AND (pc.showbrand=1 || pc.showbrand=3) AND (p.price>0) AND (p.category=5008) group by p.id ORDER BY p.id desc LIMIT 48
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 (ad.pc=1) AND (pc.showbrand=1 || pc.showbrand=3) AND (p.price>0) AND' at line 5