Zen Cart Logo
Forums / Basic Configuration / Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

Locked

Views: 2,305

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
26 Aug 2010, 1:01 PM
#1
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

Hi,

When I go to 'Admin>Tools>Admin Settings' I get the following error message:

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 admin_id, admin_name, admin_email, admin_pass, admin_level from admin order by admin_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.

I'm using ZC v1.3.9f - PHP v5.3.1 - MySQL v5.0.91-community

Anyone have any ideas what could cause this error message?

Thanks.

26 Aug 2010, 3:28 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

Check the Configuration ... Maximum Values ... and see what the setting is for:
Search Results Per Page

The default is 20 ...

If set to 0, you will get errors like this ...

26 Aug 2010, 3:35 PM
#3
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

Thanks Linda,

Yep that did it :clap:

I changed that setting a few days ago as I wanted to show all the search results on a single page, also I want to show all the products in a category (i.e Product Listing) on the same page as well. What would be the correct setting to achieve this, without causing such errors?

Thanks :smile:

26 Aug 2010, 4:13 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

A really big number ... :cool:

26 Aug 2010, 4:20 PM
#5
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Admin>Tools>Admin Settings = '1064 You have an error in your SQL syntax;'

Ajeh:

A really big number ... :cool:

Haha lol, got ya :P

Thanks Linda