Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Location
    Inside my head.
    Posts
    55
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    Just thought in case someone else has this error later that I should include the error that keeps coming up. Also if that helps anyone solve it without visiting that 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 7
    in:
    [select p.products_image, pd.products_name, p.products_quantity, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from zen_products_description pd, zen_products p left join zen_manufacturers m on p.manufacturers_id = m.manufacturers_id, zen_products_to_categories p2c left join zen_specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '1' order by p.products_sort_order, pd.products_name limit -0, 0]
    </Seth>

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SQL Error 1064??

    You probably set one or more "Maximum Value" entries to 0 in Admin->Configuration->Maximum Values.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2008
    Location
    Inside my head.
    Posts
    55
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    Thank you for the quick response.

    But when I was searching through threads earlier I noticed a thread saying something similar for a 1064 syntax error. So I went back in and checked and the only one in my Maximum Values I have set at 0 is the "Maximum Orders Detail Display on Admin Orders Listing" - and the "0" in that section is supposed to mean it is Unlimited.

    Any other thoughts on it? I really appreciate you taking your time to help me out.
    </Seth>

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SQL Error 1064??

    What's this set to?
    Admin->Configuration->Maximum Values->Products Listing- Number Per Page
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Feb 2008
    Location
    Inside my head.
    Posts
    55
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    It's set to 10 currently.
    </Seth>

  6. #6
    Join Date
    Feb 2008
    Location
    Inside my head.
    Posts
    55
    Plugin Contributions
    0

    Default Re: SQL Error 1064??

    Could it have anything to do with the Columnar Display that I installed? (there was a sql patch as well as a few other files)

    It was working fine with it, but I believe it was after the change in the admin section that it messed up. I was trying to remember if I had changed any core files - but I don't remember messing with any of those. I even have done a fresh install so I wouldn't have changed any of the core installs - just the template files - and it still isn't working properly...so maybe it was a template file I messed up as well... I might be rambling a bit - but trying to go through everything in my head that I did to replicate the error...

    Ahh!
    </Seth>

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SQL Error 1064??

    Quote Originally Posted by sethererm View Post
    Could it have anything to do with the Columnar Display that I installed?
    Probably would have been worth noting that in the first place


    What happens if you change templates back to "Classic" via the admin?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  3. SQL Error 1064?
    By niemie in forum General Questions
    Replies: 7
    Last Post: 2 Apr 2009, 09:35 PM
  4. SQL error 1064??
    By paperzombie in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Jan 2008, 06:24 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