Zen Cart Logo
Forums / General Questions / 1064 You have an error in your SQL syntax;

1064 You have an error in your SQL syntax;

Views: 1,220

Results 1 to 2 of 2
12 Apr 2011, 2:53 PM
#1
larryr99 avatar

larryr99

New Zenner

Join Date:
Dec 2009
Posts:
1
Plugin Contributions:
0

1064 You have an error in your SQL syntax;

Hi,
In my admin when I click on "Categories / Products" this message appears above my Categories List:

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 '-0, 0' at line 1
in:
[select p.products_type, p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.products_model, p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute, p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping, p.products_quantity_order_max, p.products_sort_order from products p, products_description pd, products_to_categories p2c where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = '0' order by p.products_sort_order, pd.products_name limit -0, 0]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Does anyone know what I have done wrong?

Thanks
larryr99

14 Apr 2011, 6:11 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: 1064 You have an error in your SQL syntax;

That usually only happens when you've set "0" as a value in the Admin->Configuration->Maximum Values screen when it shouldn't be.