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 (
    14641, 14640, 14637, 14635, 14634, 14633, 
    14632, 14631, 14630, 14629, 14628, 
    14627, 14626, 14481, 14480, 14482, 
    24684, 24683, 14436, 14434, 14438, 
    14437, 14411, 16539, 14409, 14410, 
    14101, 14138, 14137, 31447, 31446, 
    31445, 31444, 31443, 31442, 31441, 
    31440, 31439, 31438, 31437
  )

Query time 0.00021

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE p ALL PRIMARY,idx_group_id 376 Using where
1 SIMPLE g eq_ref PRIMARY PRIMARY 3 toolboxdigitalshop_dev.p.group_id 1
1 SIMPLE f ref idx_group_id idx_group_id 3 toolboxdigitalshop_dev.p.group_id 7