Errore: SELECT
pre3276_image.id_image,
pre3276_product_lang.link_rewrite
FROM
_composizione_medagliere
INNER JOIN pre3276_image ON pre3276_image.id_product = _composizione_medagliere.id_product AND pre3276_image.cover = '1'
INNER JOIN pre3276_product_lang ON pre3276_product_lang.id_product = _composizione_medagliere.id_product AND pre3276_product_lang.id_lang = '1'
INNER JOIN pre3276_category_product ON pre3276_category_product.id_product = _composizione_medagliere.id_product AND pre3276_category_product.id_category = _composizione_medagliere.id_category
WHERE
_composizione_medagliere.id_cart = '145180'
AND (_composizione_medagliere.id_category = '32'
OR _composizione_medagliere.id_category = '167'
OR _composizione_medagliere.id_category = '159'
OR _composizione_medagliere.id_category = '160'
OR _composizione_medagliere.id_category = '171'
OR _composizione_medagliere.id_category = '170'
OR _composizione_medagliere.id_category = '163'
OR _composizione_medagliere.id_category = '164'
OR _composizione_medagliere.id_category = '358'
OR _composizione_medagliere.id_category = '382')
GROUP BY _composizione_medagliere.id_product
ORDER BY
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 22 - 1064