beboo002 Posted June 23, 2008 Share Posted June 23, 2008 Hello All, select count(*) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '22' Error Shows 1054 - Unknown column 'p.products_id' in 'on clause' Link to comment https://forums.phpfreaks.com/topic/111462-what-problem-with-this-query/ Share on other sites More sharing options...
fenway Posted June 23, 2008 Share Posted June 23, 2008 The problem is that you upgraded to mysql 5 without reading about how the comma order precedence changed. You can't mix this with JOIN anymore the same way. Link to comment https://forums.phpfreaks.com/topic/111462-what-problem-with-this-query/#findComment-572435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.