zebby Posted November 7, 2005 Posted November 7, 2005 Hello, while setting up an osc shop the following errors occurs when browsing the categories. 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 = '2' and p2c.categories_id = '30' and the same error about the products_id with the paramter manufacturers_id. On a brand new Installation i'am using MySQL 5.0.15 what is may be the reason. I cant fix this huge sql statements. Is there any help available? Greets Zebby
kgt Posted November 7, 2005 Posted November 7, 2005 MySQL 5 will indeed choke on this statement. I don't know how many others it will choke on. Try installing the older version 4.14 (4.15? I don't know what version 4 is up to.) Contributions Discount Coupon Codes Donations
remixstore Posted November 8, 2005 Posted November 8, 2005 i get a similar prob when browsing my site's categories as a user... 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by pd.products_name' at line 1 select count(p.products_id) as total order by pd.products_name [TEP STOP] http://mastershot.tv/shop/index.php
hadsie Posted November 24, 2005 Posted November 24, 2005 It looks like this is caused due to a change in the JOIN... ON... syntax in >= mysql 5.0.12. See: http://www.oscommerce.com/forums/index.php?showtopic=178805 And http://www.oscommerce.com/community/bugs,3259
Recommended Posts
Archived
This topic is now archived and is closed to further replies.