MOTOZ

1054 - Unknown column 'p.products_type' in 'on clause'

select count(distinct p.products_id) as total from products p left join feed_products fp using (feed_products_id) left join feed_products_status fps on (fps.feed_products_status_id = fp.feed_products_status and fps.language_id = 4) left join specials s on (p.products_id = s.products_id and s.customers_group_id = 0), products_description pd left join product_type_descriptions ptd on ( ptd.ptype_id = p.products_type and ptd.languages_id = 4 ) left join product_types pt on (pt.ptype_id = p.products_type) , manufacturers m, feeds f where p.redirect_products_id is null and p.products_feed=f.feed_id and p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '4' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '105' and p.only_in_virtual = 0 and products_price > 0 and specials_new_products_price > 0 and feed_products_status <> 5 group by p.products_id order by if(ifnull(pt.sort_order,0)=0,9999,pt.sort_order) asc, ifnull(m.sort_order,99999), pd.products_name

[TEP STOP]