Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Held Orders and MySQL version 4.1.21 syntax error


golfman2006

Recommended Posts

Hopefully to an SQL guru out there, this will probably be a slam dunk. Our hosting company just upgraded our MySQL to version 4.1.21 and now we are getting the below error, when no rows exist in Held Orders, due to invalid syntax. Any idea what would be the correct syntax to use for this version of SQL? Thanks in advance.

 

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 '-9, 9' at line 1

select o.ip_address, o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from holding_orders o left join holding_orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total' order by o.orders_id DESC limit -9, 9

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...