DB Error: syntax error SELECT DISTINCT p.id as id, p.status as status FROM product p, categoryx x where x.categoryfk in () and p.id=x.productfk and p.status <> 'n' order by x.sortseq asc limit 0, 11 [nativecode=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.id=x.productfk and p.status <> 'n' order by x.sortseq asc limi' at line 3]