Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Posts
    7
    Plugin Contributions
    0

    database error 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...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]

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

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

    Try scrolling down and checking the similar threads
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2012
    Posts
    7
    Plugin Contributions
    0

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

    Quote Originally Posted by kobra View Post
    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.

  4. #4
    Join Date
    Oct 2012
    Posts
    7
    Plugin Contributions
    0

    database error 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.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v151 1064:You have an error in your SQL syntax;
    By holsterland in forum General Questions
    Replies: 5
    Last Post: 5 May 2014, 11:58 PM
  2. v139h 1064 You have an error in your SQL syntax
    By uniquely in forum Basic Configuration
    Replies: 6
    Last Post: 12 Jun 2012, 04:16 PM
  3. 1064 You have an error in your SQL syntax
    By Delights in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 8 Aug 2010, 10:06 PM
  4. 1064 You have an error in your SQL syntax
    By phastings in forum General Questions
    Replies: 1
    Last Post: 18 Dec 2008, 06:12 AM
  5. 1064 You have an error in your SQL syntax;
    By aerosmith in forum General Questions
    Replies: 3
    Last Post: 3 Sep 2008, 06:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg