Guest Posted April 12, 2008 Posted April 12, 2008 Installed a new template and got errors with the demo products. 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' Been told this is a problem with sql4 and sql 5? It will not work with sql 5 so I've got it on sql 4 and still same problem AS SHOWN http://www.rcplans4u.co.uk/store/index.php?cPath=36_27 Quote
Guest Posted April 13, 2008 Posted April 13, 2008 Installed a new template and got errors with the demo products. 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' Been told this is a problem with sql4 and sql 5? It will not work with sql 5 so I've got it on sql 4 and still same problem AS SHOWN http://www.rcplans4u.co.uk/store/index.php?cPath=36_27 Could be a problem with the template and the version of osc installed. Quote
♥toyicebear Posted April 13, 2008 Posted April 13, 2008 Click me... Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
Guest Posted April 13, 2008 Posted April 13, 2008 Error Message - 1054 - Unknown column 'p.products_id' in 'on clause' If you get this message it is probably due to your server upgrading to php5 or MySQL5. You get the message when you try a search on your site. The new OSC from around Sept-Oct 2006 or so, doesn't have this problem. You just need to change one section in index.php and one in advance search_result.php. Very simple Good Luck! Ozstar I've gone throught this and still no change and still now working. I have tried this and seems to have done the trick but may not work for others First open you index.php in a html editor Search and replace the following code. p.products_id = s.products_id REPLACE WITH p2c.products_id = s.products_id If anyone use the above and it works for them could you post a message here Many thanks to all the people that have helped in this matter Quote
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.
Note: Your post will require moderator approval before it will be visible.