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 (
    87149, 87148, 87147, 87146, 87478, 87461, 
    87267, 87013, 87012, 86982, 87168, 
    87437, 87163, 87162, 87438, 87288, 
    87287, 87025, 87022, 86884, 88075, 
    88074, 88073, 88072, 87072, 87071, 
    87070, 86983, 86835, 86603, 86602, 
    86601, 87357, 86850, 86849, 86848, 
    86847, 86846, 86845, 86693
  )

Query time 0.00025

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