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 (
    48813, 45029, 46155, 47878, 47614, 48560, 
    40524, 48836, 44758, 49290, 40713, 
    45241, 41440, 3616, 43477, 2044, 43856, 
    47871, 48551, 49001, 47615, 47612, 
    47870, 48938, 41431, 35685, 41434, 
    41432, 48939, 2042, 48550, 321
  )

Query time 0.00370

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 (48813,45029,46155,47878,47614,48560,40524,48836,44758,49290,40713,45241,41440,3616,43477,2044,43856,47871,48551,49001,47615,47612,47870,48938,41431,35685,41434,41432,48939,2042,48550,321)"
        }
      },
      {
        "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
21275 group_variation_catalog_item 2042 0 13645 PV-71B2301B0
21274 group_variation_catalog_item 2044 0 13644 PV-62CD75EBF
24125 group_variation_catalog_item 40713 0 16337 PV-A3368973C
24421 group_variation_catalog_item 43477 0 16641 PV-0DFEEFA45
24447 group_variation_catalog_item 43856 0 16672 PV-793DA0050
24520 group_variation_catalog_item 44758 0 16753 PV-7AE855DBB
24627 group_variation_catalog_item 45029 0 16859 PV-FE9C90079
24628 group_variation_catalog_item 45241 0 16860 PV-5F456338B
24661 group_variation_catalog_item 46155 0 16898 PV-0F0A9B770
24662 group_variation_catalog_item 46155 0 16898 PV-0F0A9B770
24920 group_variation_catalog_item 48560 0 17175 PV-4D9BC1C70