PDA

View Full Version : admin/orders"You have an error in your SQL syntax"


kds
5-21-05, 02:41 AM
Hi helpers.

I deleted all ordes in admin/orders, and when i deleted the last one i get this error.I make a new order on mystore but the error persist.
Please help to remove this error and see the orders again in admin/orders
Each change and where i can make it.
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 '-20, 20' at line 1select 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 orders o left join 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 -20, 20

kds
5-21-05, 03:20 AM
I'm sorry i dont see that the problem was discussed in the top of this thread sent by "klander "
I will try the enswers there.
Thanks

unai
6-9-05, 03:23 AM
Hi helpers.

I deleted all ordes in admin/orders, and when i deleted the last one i get this error.I make a new order on mystore but the error persist.
Please help to remove this error and see the orders again in admin/orders
Each change and where i can make it.
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 '-20, 20' at line 1select 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 orders o left join 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 -20, 20

happily enough, thi is a known issue with an easy answer.
look here, http://www.oscommerce.com/community/bugs,1605/search,-20%2C+20
unai