Results 1 to 10 of 16

Hybrid View

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

    Default SQL Error 1064??

    My website was working fine up until I messed with some setting in the admin section of the website. I don't know what part of it I messed it up with but I have been getting a SQL Error 1064 in my categories now.

    http://bk-clothing.com/shop/index.ph...=index&cPath=1

    I don't know what I messed up or changed that I wasn't supposed to - or if it is an error in the database but I can't figure it out.

    I have done a search of the forums from others that have posted that they have this error, but the ones that are similar when I checked what they had to check hasn't been the same result.

    I would greatly appreciate any help on this before I end up bald from ripping my hair out!

    Thanks!!
    </Seth>

  2. #2
    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>

  3. #3
    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.

  4. #4
    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>

  5. #5
    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.

  6. #6
    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>

 

 

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