Guest Posted August 17, 2006 Share Posted August 17, 2006 hi, i have been using oscommerce for a while and today i realise that i have 2 errors . the first one is under categories banner when i click on my products there this error comes up: 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 = '22' [TEP STOP] And the other error is when i log as a an administrator and i want to see my orders, the clients that have no orders show me this error: 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 '-20, 20' at line 1 select o.orders_id, o.customers_name, o.customers_id, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.customers_id = '31' and o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total' order by orders_id DESC limit -20, 20 [TEP STOP] please tell me what to do in order to solve these problems. regards eduardo Link to comment Share on other sites More sharing options...
spax Posted August 17, 2006 Share Posted August 17, 2006 Read this: http://www.oscommerce.com/ext/update-20051113.html Paying attention to "limit -20, 20" (1064 error) and "MySQL 5.0 Compatibility" (1054 error) Link to comment Share on other sites More sharing options...
Guest Posted August 17, 2006 Share Posted August 17, 2006 Read this: http://www.oscommerce.com/ext/update-20051113.html Paying attention to "limit -20, 20" (1064 error) and "MySQL 5.0 Compatibility" (1054 error) Thanks a lot Peter for the help. My problem is fixed now. Regards Eduardo Link to comment Share on other sites More sharing options...
spax Posted August 17, 2006 Share Posted August 17, 2006 No problem! :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.