This mod is kind of working okay but I get the following showing on the screen if I add a lot of items to the cart.
14 items and the screen below the cart shows:
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 '-2)' at line 1
in:
[(select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '478' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '581' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '468' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '451' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '479' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '476' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '471' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '588' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '481' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '582' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '473' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '586' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '447' 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 2) UNION (select p.products_id, p.products_image from fmproducts_xsell xp, fmproducts p, fmproducts_description pd where xp.products_id = '475' 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 -2)]
Anyone else getting this and is there a fix please.
MG