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 ( pd.products_name like '%Ankle Length%' or pd.products_description like' at line 1
in:
[select count(*) as total from wedding2b_products p,wedding2b_products_description pd where p.products_id=pd.products_id and p.products_status=1 and pd.language_id =1 and p.master_categories_id in() and ( pd.products_name like '%Ankle Length%' or pd.products_description like '%Ankle Length%' )]