Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mystery SQL Error!


dreamingdigital

Recommended Posts

Posted

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

 

select a.association_id, a.zone_country_id, c.countries_name, a.zone_id, a.geo_zone_id, a.last_modified, a.date_added, z.zone_name from zones_to_geo_zones a left join countries c on a.zone_country_id = c.countries_id left join zones z on a.zone_id = z.zone_id where a.geo_zone_id = 5 order by association_id limit -25, 25

 

This just started showing up in my Admin section on my "Specials" admin and my "Localization - Tax Zones - Info & Edit page" !!!!! :( (the above is from the latter) I went into phpMyAdmin and repaired and optimized my tables (they were OK though). What's up??!

 

CP

Posted

Here is the error message from the specials page:

 

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

 

select p.products_id, pd.products_name, p.products_price, s.specials_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 = '1' and p.products_id = s.products_id order by pd.products_name limit -25, 25

 

[TEP STOP]

Archived

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

×
×
  • Create New...