Boschett Posted May 1, 2008 Posted May 1, 2008 Hello, I need assistance with an error message I'm getting when I'm in my list of customers and I click on the order icon. I get 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 = '2' 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] --- Is there anyone out there that can help me? Thanks, Keith
drumcentral Posted May 1, 2008 Posted May 1, 2008 Hi there, I had a similar problem, which may or may not be the same. It turned out to be non-text characters being used in the product title in the catalog. Apostrophes, inverted commas, any html etc., seemed to be causing errors in admin. So my answer was to just use letters and numbers in the title. i hope this helps. Kenny --------------------------------------------------------------------------------------------------
Boschett Posted May 1, 2008 Author Posted May 1, 2008 Kenny, Thanks so much. Can't believe that caused an issue. I had two words in my one and only product line and the space between the words was causing it. Keith
drumcentral Posted May 1, 2008 Posted May 1, 2008 Glad I could help. It does seem a bit odd that the space between words should be causing the error. I have around 1000 products on the site ww.drumcentral.co.uk, and since I spotted and corrected the problem with the apostrophes, I've had no other problems, certainly not with using spaces between words. Maybe there's something else, like html or slashes / or <. Kenny --------------------------------------------------------------------------------------------------
Recommended Posts
Archived
This topic is now archived and is closed to further replies.