Forums / All Other Contributions/Addons / Cart Upsell: Error message 1064 you have an error in your sql syntax after installing

Cart Upsell: Error message 1064 you have an error in your sql syntax after installing

Locked

Views: 3,475

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Sep 2008, 12:47 AM
#1
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Cart Upsell: Error message 1064 you have an error in your sql syntax after installing

I have a similar error, however this only shows up on the cart page, and only since I included the cart upsell.

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_id, p.products_image from zen_products_xsell xp, zen_products' at line 1
in:
[(select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '209' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 4) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '211' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 4) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '215' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 5)(select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '209' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 4) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '211' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 4) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '215' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 5)]
Any ideas?

I'm running mysql 5

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

20 Sep 2008, 11:27 PM
#2
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Cart Upsell: Error message 1064 you have an error in your sql syntax after installing

The error here was caused my calling the mod twice in the shopping cart mod. Once I removed the duplicate, it works fine!

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

20 Sep 2008, 11:32 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cart Upsell: Error message 1064 you have an error in your sql syntax after installing

Thanks for the update on the cause of this issue and for posting the solution ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Sep 2008, 11:45 PM
#4
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Cart Upsell: Error message 1064 you have an error in your sql syntax after installing

That's ok! I'm been running into lots of problems and searching the forum. It really helps when a solution has been posted.

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it