golfman2006 Posted December 11, 2006 Posted December 11, 2006 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.