1064 - 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 products_status=1 AND mg_Id=2 GROUP BY mw_Id' at line 1

SELECT mwzp.mw_Id FROM merkmale_werte_zu_produkten mwzp join products as p ON( p.products_id=mwzp.products_id ) WHERE p.products_master = AND products_status=1 AND mg_Id=2 GROUP BY mw_Id

[ECB SQL Error]