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 (
    13916, 13919, 13929, 13932, 13902, 13931, 
    13939, 13913, 13909, 13924, 13921, 
    13908, 13930, 13938, 13917, 13926, 
    13905, 13906, 13936, 13904, 13933, 
    13912, 13928
  )

Query time 0.00042

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.08993129,
    "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"],
          "loops": 1,
          "rows": 23,
          "cost": 0.02503789,
          "filtered": 100,
          "attached_condition": "p.product_id in (13916,13919,13929,13932,13902,13931,13939,13913,13909,13924,13921,13908,13930,13938,13917,13926,13905,13906,13936,13904,13933,13912,13928)"
        }
      },
      {
        "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": ["u508912950_dev_2025.p.group_id"],
          "loops": 23,
          "rows": 1,
          "cost": 0.04350208,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["id"],
          "ref": ["u508912950_dev_2025.p.group_id"],
          "loops": 23,
          "rows": 1,
          "cost": 0.02139132,
          "filtered": 100
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
607 group_variation_catalog_item 13902 0 141 PV-1Y234Z56
607 group_variation_catalog_item 13906 0 142 PV-2A567B89
607 group_variation_catalog_item 13909 0 143 PV-3C890D12
607 group_variation_catalog_item 13913 0 144 PV-4E123F45
607 group_variation_catalog_item 13917 0 145 PV-5G456H78
607 group_variation_catalog_item 13919 0 146 PV-6I789J01
607 group_variation_catalog_item 13921 0 147 PV-7K012L34
607 group_variation_catalog_item 13924 0 148 PV-8M345N67
607 group_variation_catalog_item 13926 0 149 PV-9O678P90
607 group_variation_catalog_item 13933 0 150 PV-0Q901R23
607 group_variation_catalog_item 13936 0 151 PV-1S234T56