hoangquan Posted May 20, 2007 Share Posted May 20, 2007 Hello my website is http://www.mda-tek.com/demooscommerce/4/ 1054 - Unknown column 'p.products_id' in 'on clause' select p.products_image, pd.products_name, p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price 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 = '61' order by p.products_date_added DESC limit 2 [TEP STOP] Please help me fix step by step Thanks you very much Hoang Quan Link to comment Share on other sites More sharing options...
musicmaestro Posted May 20, 2007 Share Posted May 20, 2007 Did you back up your tables and if so, try a restore. Looks as though one of your tables has been altered. Steve Link to comment Share on other sites More sharing options...
Guest Posted May 20, 2007 Share Posted May 20, 2007 Hello my website is http://www.mda-tek.com/demooscommerce/4/ 1054 - Unknown column 'p.products_id' in 'on clause' select p.products_image, pd.products_name, p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price 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 = '61' order by p.products_date_added DESC limit 2 [TEP STOP] Please help me fix step by step Thanks you very much Hoang Quan You also have -------------------------------------- --> and --> when you view source on the page. They may also be causing problems. Link to comment Share on other sites More sharing options...
duds Posted May 21, 2007 Share Posted May 21, 2007 You also have -------------------------------------- --> and --> when you view source on the page. They may also be causing problems. I've been having the same problems. has your mysql been updated to a newer version? if so It's more strict and wont allow column jopins with out parenthasis (excuse spelling). check the mysql forums, or theree are threads on here about it, I was looking at them a few days ago, so fdont have them listed, sorry, I'm beyond that bit now and onto other problems... I promise myself I will never move hosts again........ Link to comment Share on other sites More sharing options...
caryne444 Posted August 20, 2007 Share Posted August 20, 2007 I've been having the same problems. has your mysql been updated to a newer version? if so It's more strict and wont allow column jopins with out parenthasis (excuse spelling). check the mysql forums, or theree are threads on here about it, I was looking at them a few days ago, so fdont have them listed, sorry, I'm beyond that bit now and onto other problems... I promise myself I will never move hosts again........ I have similar problem: error message says 1054 - Unknown column 'p.products_id' in 'on clause' select count(p.products_id) 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 = '27' [TEP STOP] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.