Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    May 2004
    Posts
    777
    Plugin Contributions
    0

    Default New Products SQL Error

    Hi,
    I am getting this error when anyone clicks on the new products link:
    -------------------
    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 p.products_date_added DESC, pd.products_name limit -0, 0]
    ------------------
    Any idea where or how I would fix this?

    thank you,

    betty

    v1.38a with all the latest patches applied

  2. #2
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    892
    Plugin Contributions
    4

    Default Re: New Products SQL Error

    Log in to your Admin, click on the Configuration menu then Maximum values. What does it say against 'New Products Listing- Number Per Page'?

    Regards,
    Christian.

  3. #3
    Join Date
    May 2004
    Posts
    777
    Plugin Contributions
    0

    Default Re: New Products SQL Error

    It says 1.

    thank you,
    betty

    Quote Originally Posted by CJPinder View Post
    Log in to your Admin, click on the Configuration menu then Maximum values. What does it say against 'New Products Listing- Number Per Page'?

    Regards,
    Christian.

  4. #4
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    892
    Plugin Contributions
    4

    Default Re: New Products SQL Error

    Quote Originally Posted by bettysue View Post
    It says 1.
    Try changing that to a larger number like 10 and see if that fixes the problem.

    Regards,
    Christian.

  5. #5
    Join Date
    May 2004
    Posts
    777
    Plugin Contributions
    0

    Default Re: New Products SQL Error

    No that didn't fix it, I still get the same error message.

    thank you,

    betty

  6. #6
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    892
    Plugin Contributions
    4

    Default Re: New Products SQL Error

    Hmm..very odd. The SQL error you posted earlier would only occur if 'New Products Listing- Number Per Page' was set to 0. It also looks as if 'New Product Listing - Limited to ...' is also set to 0.

    If 'New Products Listing- Number Per Page' is set to something other than zero then it could be that the Configuration table in your database has become corrupt. Do you have a recent backup of your database from before the error started happening?

    Regards,
    Christian.

 

 

Similar Threads

  1. 1064 error when I add 13 products to the basket (xsell mod query error)
    By morrie in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 27 Jan 2010, 09:41 AM
  2. Products Quantites Box error
    By ktomas in forum General Questions
    Replies: 1
    Last Post: 26 Jul 2009, 02:29 AM
  3. New Products error
    By MPF in forum General Questions
    Replies: 4
    Last Post: 27 Apr 2007, 11:00 AM

Bookmarks

Posting Permissions

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