Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'Product Not Found' Error


dragon5

Recommended Posts

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...