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 'or pd.products_name like '%G80%')
and pd.products_name like '%%'
and pd.pr' at line 2

select count(distinct p.products_id) as total from products_description pd, products_to_categories p2c, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id left join specials6 s on p.products_id = s.products_id and s.stores_id = '6' INNER JOIN products_to_stores p2s ON p.products_id = p2s.products_id where p2s.stores_id = '6' and p.products_status = '1'
and (or pd.products_name like '%G80%')
and pd.products_name like '%%'
and pd.products_name like '%%'
and pd.products_name like '%%'
and pd.products_name like '%%'
and pd.products_url like '%%'
and pd.products_url like '%%'
and pd.products_url like '%%'
and pd.products_name not like '%XXXX%'
and pd.products_name not like '%XXXX%'
and pd.products_name not like '%XXXX%'
and pd.products_name not like '%XXXX%'
and pd.products_name not like '%XXXX%'
and pd.products_name not like '%XXXX%'
and pd.products_description like '%%'
and pd.products_description like '%%'
and pd.products_description like '%%'
and pd.products_url like '%%'
and pd.products_url like '%%'
and pd.products_url like '%%'
and pd.products_url like '%%'
and pd.products_description like '%%' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '2'