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 1

select distinct p.products_id from products_xsell xp, products p, products_description pd, products_to_segments pts where xp.products_id = '' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' and (p.products_id = pts.products_id and pts.segment_id = )

[TEP STOP]