1054 - Unknown column 'p.products_id' in 'on clause'
select count(*) as total from featured_star fs , products p left join manufacturers m using(manufacturers_id), style st, format f, products_description pd left join products_to_categories p2c on p.products_id = p2c.products_id left join products_tracklisting pt on p.products_id = pt.products_id left join specials s on p.products_id = s.products_id, categories c , categories_description cd where p.producttype_id=1 and p.products_id=fs.products_id and p.style_id = st.style_id and p.format_id = f.format_id and p.products_id = pd.products_id and pd.language_id = '1' and p2c.categories_id = cd.categories_id and (p.products_status=1) and (p2c.categories_id = '83' or p2c.categories_id = '68' or p2c.categories_id = '69' or p2c.categories_id = '73' or p2c.categories_id = '74' or p2c.categories_id = '113' or p2c.categories_id = '76' or p2c.categories_id = '77' or p2c.categories_id = '78' or p2c.categories_id = '105' or p2c.categories_id = '85' or p2c.categories_id = '87' or p2c.categories_id = '91' or p2c.categories_id = '92' or p2c.categories_id = '94' or p2c.categories_id = '95' or p2c.categories_id = '108' or p2c.categories_id = '120') and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) < '182'