1054 - Unknown column 'p.products_id' in 'on clause'
select count(*) as total from products p left join manufacturers m on (p.manufacturers_id = m.manufacturers_id), products_description pd INNER JOIN products_to_stores p2s ON p.products_id = p2s.products_id where p2s.stores_id = '17' and p.products_status = '1' and p.products_id = pd.products_id and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) < '34' and pd.language_id = '4'