SELECT id,name_hun,kulcsszo_hun FROM sc_ws_products_attribs WHERE parent =(SELECT id FROM sc_ws_products_attribs WHERE name_hun='Gender') AND id IN (SELECT PVS.attrib_id FROM sc_ws_products P INNER JOIN sc_ws_products_variant_attribs PVS ON P.id=PVS.product_id WHERE PVS.categ_id=3 AND P.id= GROUP BY PVS.attrib_id ) ORDER BY name_hun ASC
Error!: SQLSTATE[42000]: Syntax error or access violation: 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 'GROUP BY PVS.attrib_id ) ORDER BY name_hun ASC' at line 1