dragon5 Posted December 8, 2006 Posted December 8, 2006 Hello. When a customer clicks on a bookmark to a product on my site that is currently out of stock, they are getting the message 'Product Not Found', but also this error message is displayed on the page: 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 '-5, 5' at line 1 select distinct p2c.products_id, p2c.categories_id, p.products_image, p.products_price, p.products_ordered from products_to_categories p2c, products p where p2c.categories_id='0' and p2c.products_id=p.products_id and p.products_status='1' order by p.products_ordered desc limit -5, 5 [TEP STOP] Any advice would be appreciated. Thanks Tom
dragon5 Posted December 10, 2006 Author Posted December 10, 2006 On doing a search for the above problem, it seems that others are having the same issue. Found this thread: http://www.oscommerce.com/forums/index.php?sho...;hl=1064+syntax but I'm not sure if this is a solution? Shop is 'live' so mistakes are not an option. Anyone? Thanks Tom
Recommended Posts
Archived
This topic is now archived and is closed to further replies.