Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2013
    Location
    India
    Posts
    36
    Plugin Contributions
    0

    Default Getting a SQL error on On "All products" for a category

    Hello,

    I am seeing an error on one of the sections "All Products" related to the product category. I have a category tab as "Spiritual" in the menu. Under this is "All Products". When I click on this "All Products" tab, I see this error.

    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]


    I tried to check for "p.products_date_added" using the developer tool kit , I got it in


    /html/includes/functions/functions_lookups.php

    It showed me this:

    Line #848 : $display_limit = " and date_format(p.products_date_added, '%Y%m') >= date_format(now(), '%Y%m')";

    Line #851 : $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 7';

    Line #854 : $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 14';

    Line #857 : $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 30';

    Line #860 : $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 60';

    Line #863 : $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 90';

    Line #866 : $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 120';

    Line #914 : $new_range = ' and p.products_date_added >=' . $zc_new_date;

    Line #917 : $new_range = ' and p.products_date_added >=' . $zc_new_date;


    Kindly let me know what needs to done. Thanks a lot

  2. #2
    Join Date
    Apr 2013
    Location
    India
    Posts
    36
    Plugin Contributions
    0

    Default Re: Getting a SQL error on On "All products" for a category

    Please help me in the issue. I do not want customers to see this error. Thanks!

 

 

Similar Threads

  1. v154 Deleting an Option with a "TEXT" or "FILE" value for ALL products
    By kcb410 in forum Setting Up Categories, Products, Attributes
    Replies: 26
    Last Post: 3 Feb 2015, 08:18 PM
  2. how to disable "new products" and "all products" from category sidebox?
    By phingoc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Mar 2014, 12:40 AM
  3. v151 How do I move "New Products ..." & "All Products ..." to top of category box?
    By doooomed in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Mar 2013, 06:37 PM
  4. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  5. Inside the "Categories" box it says "New Products" and "All Products"...
    By john9 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Feb 2007, 07: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