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.products_status = '1' and p.products_id = pd.products_id' at line 1
select count(*) as total from products p left join manufacturers m on (p.manufacturers_id = m.manufacturers_id), products_description pd where p.products_prom = '2' or p.products_date_added > curdate() - interval 90 day) and p.products_status = '1' and p.products_id = pd.products_id