SELECT
f.feature_id,
f.purpose,
p.product_id,
p.parent_product_id,
g.id,
g.code
FROM
cscart_product_variation_group_features AS f
INNER JOIN cscart_product_variation_groups AS g ON f.group_id = g.id
INNER JOIN cscart_product_variation_group_products AS p ON f.group_id = p.group_id
WHERE
p.product_id IN (
1828, 1675, 1931, 1544, 1845, 1540, 1512,
1525, 1536, 1538, 1937, 1581, 1582,
1838, 1938, 1830, 1514, 1835, 1678,
1693, 1711, 1699, 1698, 1869, 1834,
1833, 1928, 1537, 1539, 1381, 1320,
359, 1892, 1898, 1899, 1436, 1411, 1397,
1741, 1270, 1376, 1301, 1330, 1215,
1439, 1323, 717, 1217
)