Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL Error


boyhazard

Recommended Posts

Hy all!

I need some help.

Im runing B2BSUITE.

 

My shop was runing for a month and the company where my shop is instald updated MySql. Now I get some errors.

What can I do?

Thanks!

__________________________________

1. Admin-Catalog-Reviews

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 reviews_id, products_id, date_added, last_modified, reviews_rating from reviews order by date_added DESC limit -20, 20

 

[TEP STOP]

__________________________________

2. Admin-Catalog-Specials

 

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 p.products_id, pd.products_name, p.products_price, s.specials_id, s.customers_group_id, s.specials_new_products_price, s.specials_date_added, s.specials_last_modified, s.expires_date, s.date_status_change, s.status from products p, specials s, products_description pd where p.products_id = pd.products_id and pd.language_id = '6' and p.products_id = s.products_id order by pd.products_name limit -20, 20

 

[TEP STOP]

__________________________________

3. Admin-Catalog-Products Expected

 

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 pd.products_id, pd.products_name, p.products_date_available from products_description pd, products p where p.products_id = pd.products_id and p.products_date_available != '' and pd.language_id = '6' order by p.products_date_available DESC limit -20, 20

 

[TEP STOP]

__________________________________

4. Admin-Customers-Customer approval

 

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 c.customers_id, c.customers_lastname, c.customers_firstname, a.entry_company, c.customers_email_address, a.entry_country_id, c.customers_group_id from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id where member_level = '0' order by c.customers_lastname, c.customers_firstname limit -20, 20

 

[TEP STOP]

__________________________________

5. Admin-Customers-Orders

 

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_group_id, o.customers_company, 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 = '6' and ot.class = 'ot_total' order by o.orders_id DESC limit -20, 20

 

[TEP STOP]

__________________________________

6. Admin-Localization-Orders Status

 

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 orders_status_id, orders_status_name from orders_status where language_id = '6' order by orders_status_id limit -20, 20

 

[TEP STOP]

__________________________________

7. Admin-Tools-Newsletter Manager

 

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 newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from newsletters order by date_added desc limit -20, 20

 

[TEP STOP]

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...