Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    Carmi, IL
    Posts
    354
    Plugin Contributions
    0

    Default 1064 SQL syntax error

    When I click on the New Products on the main page left side under categories, I get this and don't know what to do to fix:

    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 11
    in:
    [SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id FROM zen_products p LEFT JOIN zen_manufacturers m ON (p.manufacturers_id = m.manufacturers_id), zen_products_description pd WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 order by pd.products_name DESC limit -0, 0]


    Any suggestions on how can fix this??

    Thanks
    Pkat

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: 1064 SQL syntax error

    Check you Maximum Values for settings of 0 ...

    Also check the Known Bugfixes for v1.3.8:
    http://www.zen-cart.com/forum/showthread.php?t=82619

    And, this is a good time to review that you have applied all of the Security Patches:
    http://www.zen-cart.com/forum/showthread.php?t=131115
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2009
    Location
    Carmi, IL
    Posts
    354
    Plugin Contributions
    0

    Default Re: 1064 SQL syntax error

    Thanks Linda...I'll get right on this...

  4. #4
    Join Date
    Aug 2009
    Location
    Carmi, IL
    Posts
    354
    Plugin Contributions
    0

    Default Re: 1064 SQL syntax error

    Welp...you saved the day again!!
    I had a value of "0" for New Products Listing- Number Per Page...
    and I changed this to a higher number and now the error is gone.Thanks!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: 1064 SQL syntax error

    Thanks for the update that the problem was do to a Maximum Value set to 0 resulting in the error ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. 1064 error sql syntax
    By pjgscrap in forum General Questions
    Replies: 2
    Last Post: 5 Mar 2009, 05:04 PM
  3. SQL syntax error 1064
    By jackzc in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Sep 2007, 02:29 AM
  4. 1064 sql syntax error
    By jpierre in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 7 Sep 2006, 01:03 PM
  5. 1064 SQL syntax error
    By swmart77 in forum General Questions
    Replies: 3
    Last Post: 16 Jul 2006, 08:58 PM

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