Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default 1064 error sql syntax

    I'm sorry for starting a thread about this, but I read through all of the others and I still can't get rid of this problem. In maximum values the only value set to 0 is the order details (there possibly was a value set to 0 that my aunt went and changed back already). I tried repairing the db. I called the host, they have not updated php or mysql and there is still plenty of room on the server. No new mods have been added in quite some time. Zen cart is up to date, latest version. I get these errors almost everywhere in the admin panel. Here is the one from categories / products. I should also note that the store, other than admin seems to be fine.


    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 'select p.products_type, p.products_id, pd.products_name, p.products_quantity, ' at line 1
    in:
    [select count(select p.products_type, p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.products_model, p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute, p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping, p.products_quantity_order_max, p.products_sort_order from zen_products p, zen_products_description pd, zen_products_to_categories p2c where p.products_id = pd.products_id and pd.language_id = \'1\' and p.products_id = p2c.products_id and p2c.categories_id = \'0\' order by p.products_sort_order, pd.products_name) as total ]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

  2. #2
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: 1064 error sql syntax

    Again sorry about the post, but maybe this will help someone in the future. It's funny just as I was losing my mind and posting for help, I managed to fix this. For some reason the cause was the split_page_results.php in admin/includes/classes, all I did was replace this with a backup and everything started working again.

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: 1064 error sql syntax

    Pj,
    Thanks for the update for us as fellow Zenners

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. 1064 SQL syntax error
    By perkiekat in forum General Questions
    Replies: 4
    Last Post: 12 Dec 2009, 09:13 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