Jump to content

SQL Fehler bei Multishop


FS24

Recommended Posts

Hallo,

ich nutze Prestashop 1.6.1.24 und habe mehrere Shops (Multishops) aufgebaut.
Nun habe ich Artikel angelegt, die jeweils im Hauptshop und dem Multishop angezeigt werden sollen.
Im Hauptshop wird auch alles korrekt angezeigt, nur im anderen Shop kommt eine SQL Fehlermeldung:

"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 ',) AND pl.id_lang = 1 AND cl.id_lang = 1 ...' at line 10"

SELECT MAX(image_shop.id_image) id_image, p.id_product, il.legend, product_shop.active, pl.name, pl.description_short, pl.link_rewrite, cl.link_rewrite AS category_rewrite
            FROM ps_product p
             INNER JOIN ps_product_shop product_shop
		ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 7)
            LEFT JOIN ps_product_lang pl ON (pl.id_product = p.id_product AND pl.id_shop = 7 )
            LEFT JOIN ps_image i ON (i.id_product = p.id_product) LEFT JOIN ps_image_shop image_shop
		ON (image_shop.id_image = i.id_image AND image_shop.id_shop = 7 AND image_shop.cover=1)
            LEFT JOIN ps_image_lang il ON (il.id_image = image_shop.id_image AND il.id_lang = 1)
            LEFT JOIN ps_category_lang cl ON (cl.id_category = product_shop.id_category_default AND cl.id_shop = 7 )
            WHERE p.id_product IN (39911) AND p.`id_product` NOT IN (,,)
            AND pl.id_lang = 1
            AND cl.id_lang = 1
            GROUP BY product_shop.id_product

Es geht hier um die fehlerhafte Zeile

WHERE p.id_product IN (39911) AND p.`id_product` NOT IN (,,)

Nach NOT IN(, darf wohl nichts leeres drin stehen.
Es geht bei der SQL Abfrage ja um die Produkte.
Hab nur keine Ahnung was normalerweise bei NOT IN () drin steht und wo diese Abfrage überhaupt generiert wird.

Hat jemand eine Idee, wo ich hier als erstes nach dem Fehler schauen könnte?
Denn so habe ich gar keinen Ansatzpunkt.

Schonmal vielen Dank!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...