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 (
    2803, 3568, 5715, 5716, 17265, 3868, 
    41340, 3567, 3869, 5717, 5990, 47655, 
    27359, 5789, 34555, 47922, 47921, 41343, 
    47896, 47924, 31638, 3870, 114, 47923, 
    1582, 33312, 31633, 31632, 3287, 3286, 
    3872, 113
  )

Query time 0.00248

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 (2803,3568,5715,5716,17265,3868,41340,3567,3869,5717,5990,47655,27359,5789,34555,47922,47921,41343,47896,47924,31638,3870,114,47923,1582,33312,31633,31632,3287,3286,3872,113)"
        }
      },
      {
        "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
22516 group_variation_catalog_item 113 0 14769 PV-E14DA16FF
21575 group_variation_catalog_item 1582 0 13908 PV-C51A6244A
20695 group_variation_catalog_item 3286 0 13125 PV-458ECC441
20470 group_variation_catalog_item 3868 0 12920 PV-546CA4455
20469 group_variation_catalog_item 3869 0 12919 PV-822F57D55
20468 group_variation_catalog_item 3870 0 12918 PV-0D144BA32
20466 group_variation_catalog_item 3872 0 12916 PV-38CECE60A
20084 group_variation_catalog_item 17265 0 12575 PV-045A6CFE7
23233 group_variation_catalog_item 31633 0 15352 PV-E277CD751
23432 group_variation_catalog_item 33312 0 15564 PV-3EA2C725C
23521 group_variation_catalog_item 34555 0 15656 PV-9C898B447
24836 group_variation_catalog_item 47655 0 17090 PV-F92FB06A3