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 (
    316, 317, 320, 328, 330, 331, 5, 148, 180, 
    18, 16, 4
  )

Query time 0.00054

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE p ALL PRIMARY,idx_group_id 35 Using where
1 SIMPLE f ALL idx_group_id 6 Using where; Using join buffer (flat, BNL join)
1 SIMPLE g eq_ref PRIMARY PRIMARY 3 cscart_dev_4_16.p.group_id 1