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 ') AND pkw.TypNr=9033 WHERE p.products_id=950236 GROUP BY p.products_id' at line 1

SELECT p.products_id, MAX(pkw.ArtNr) AS ArtNr FROM products p LEFT JOIN products_to_dmt ptd ON p.products_id=ptd.products_id LEFT JOIN dmt_VKN_PKW pkw ON ptd.ArtNr=pkw.ArtNr AND pkw.ArtNr IN () AND pkw.TypNr=9033 WHERE p.products_id=950236 GROUP BY p.products_id

[TEP STOP]