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' Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.