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 (
    6132, 47008, 41404, 977, 6363, 298, 22426, 
    41407, 31960, 6119, 1746, 47895, 6121, 
    28441, 5578, 47082, 6116, 28442, 5588, 
    6133, 5811, 3641, 2155, 3639, 4490, 
    976, 1745, 6146, 2495, 2295, 5810, 4688
  )

Query time 0.00789

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "p",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 32,
          "filtered": 100,
          "index_condition": "p.product_id in (6132,47008,41404,977,6363,298,22426,41407,31960,6119,1746,47895,6121,28441,5578,47082,6116,28442,5588,6133,5811,3641,2155,3639,4490,976,1745,6146,2495,2295,5810,4688)"
        }
      },
      {
        "table": {
          "table_name": "f",
          "access_type": "ref",
          "possible_keys": ["idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.p.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["id"],
          "ref": ["dev_db.p.group_id"],
          "rows": 1,
          "filtered": 100
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
22410 group_variation_catalog_item 298 0 14672 PV-9A26CE632
21215 group_variation_catalog_item 2155 0 13598 PV-733371E87
21031 group_variation_catalog_item 2495 0 13423 PV-9CD5B725A
20215 group_variation_catalog_item 4688 0 12673 PV-B4A8ED776
19991 group_variation_catalog_item 5588 0 12493 PV-A2239C1D6
21397 group_variation_catalog_item 22426 0 13757 PV-BEFAACD40
24741 group_variation_catalog_item 47008 0 16981 PV-FF23DBCD7
24749 group_variation_catalog_item 47082 0 16999 PV-078F24E75