Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / 1064 You have an error in your SQL syntax;

1064 You have an error in your SQL syntax;

Views: 1,387

Results 1 to 5 of 5
11 Oct 2012, 7:15 AM
#1
alwaysanirudh avatar

alwaysanirudh

New Zenner

Join Date:
Oct 2012
Posts:
7
Plugin Contributions:
0

1064 You have an error in your SQL syntax;

I'm working on a eCommerce website. The Theme used is Bluewide.
From the backend I'm creating categories it is going fine.

When I'm adding a subcategory to the the category. It gives an error in the front-end even though the Subcategories are listed correct on the right hand sidebar.
This is the link to the page http://teleskyshopping.com/index.php?main_page=index&cPath=69

The error being:
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 'order by p.products_date_added DESC, pd.products_name LIMIT 120' at line 1
in:
[ order by p.products_date_added DESC, pd.products_name LIMIT 120]
:dontgetit

11 Oct 2012, 7:17 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Try scrolling down and checking the similar threads

11 Oct 2012, 9:40 AM
#3
alwaysanirudh avatar

alwaysanirudh

New Zenner

Join Date:
Oct 2012
Posts:
7
Plugin Contributions:
0

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

kobra:

Try scrolling down and checking the similar threads

Thanks Kobra. I have done my research. But noting seems to solve the problem. 3 out of 6 categories are working fine. Now if any new category is added I face the same problem. If It had to happen it would have been the same for all categories.

11 Oct 2012, 10:29 AM
#4
alwaysanirudh avatar

alwaysanirudh

New Zenner

Join Date:
Oct 2012
Posts:
7
Plugin Contributions:
0

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

As far as my investigations the "pd.products_name LIMIT 120" is invalid but i'm not sure from where the query is being called. Please help.

11 Oct 2012, 3:13 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Try your developers tool kit in your admin and search for

p.products_date_added or pd.products_name