bobbybrown Posted July 5, 2009 Share Posted July 5, 2009 Hey guys, I've installed OScommerce to my site and got it all up and running, then found an error message. This is the error: 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 = '58' [TEP STOP] I get it when trying to search for something or when clicking on the categories for my products, meaning that noone can access my products! I've tried running querys in phpmyadmin but nothing works, I just get errors saying the fields don't exist. I don't have a field in the products table called products_d. I'm really confused why its happening, its a totally new fresh install of oscommerce. If someone can help me get this sorted it would be really appreciated, I've tried everything I can think of. Thanks for reading guys. Dan Link to comment Share on other sites More sharing options...
playcraft Posted July 5, 2009 Share Posted July 5, 2009 Hey guys,I've installed OScommerce to my site and got it all up and running, then found an error message. This is the error: 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 = '58' [TEP STOP] I get it when trying to search for something or when clicking on the categories for my products, meaning that noone can access my products! I've tried running querys in phpmyadmin but nothing works, I just get errors saying the fields don't exist. I don't have a field in the products table called products_d. I'm really confused why its happening, its a totally new fresh install of oscommerce. If someone can help me get this sorted it would be really appreciated, I've tried everything I can think of. Thanks for reading guys. Dan Try this Link to comment Share on other sites More sharing options...
bobbybrown Posted July 5, 2009 Author Share Posted July 5, 2009 Try this Thanks for that, unfortunately my index.php is much shorter than that says it should be and doesn't have the lines it asks for. Any ideas? Link to comment Share on other sites More sharing options...
bobbybrown Posted July 5, 2009 Author Share Posted July 5, 2009 This might help, I'm using a template so my index.php doesn't have those lines. I'm really stuck on this. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted July 5, 2009 Share Posted July 5, 2009 There is a contribution that explains how to fix the "left join"/mysql5 problem or there a couple of useful links in my signature block below. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
bobbybrown Posted July 6, 2009 Author Share Posted July 6, 2009 I've sorted it now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.