SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'vi' 
  AND gp.group_id IN (
    13472, 13465, 13451, 16131, 12446, 16323, 
    13957, 15422, 14682, 16443, 12548, 
    14393, 13384, 14519
  )

Query time 0.01275

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "rows": 51,
          "filtered": 100,
          "index_condition": "gp.group_id in (13472,13465,13451,16131,12446,16323,13957,15422,14682,16443,12548,14393,13384,14519)"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.gp.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "key_length": "12",
          "used_key_parts": ["product_id", "feature_id", "lang_code"],
          "ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
19944 16416 69685 12446
19944 5743 69686 12446
20052 16844 70122 12548
20052 5414 70123 12548
20991 20954 73338 13384
20991 20953 73337 13384
20991 20952 73336 13384
20991 20951 73335 13384
20991 20950 73334 13384
20991 2552 73339 13384
21059 21086 73531 13451
21059 2456 73530 13451
21073 21116 73575 13465
21073 2442 73574 13465
21080 21123 73589 13472
21080 2435 73588 13472
21629 1477 75648 13957
21629 23169 75645 13957
21629 23170 75646 13957
21629 23171 75647 13957
22110 24744 77409 14393
22110 738 77410 14393
22239 540 77926 14519
22239 25165 77922 14519
22239 25166 77923 14519
22239 25167 77924 14519
22239 25168 77925 14519
22420 26134 78653 14682
22420 26133 78652 14682
22420 285 78654 14682
23304 32287 80848 15422
23304 32286 80847 15422
23959 38647 83430 16131
23959 38668 83439 16131
23959 38669 83431 16131
23959 38670 83432 16131
23959 38671 83433 16131
23959 38672 83434 16131
23959 38673 83435 16131
23959 38674 83436 16131
23959 38675 83437 16131
23959 38676 83438 16131
24110 40639 84012 16323
24109 40639 84008 16323
24110 40638 84011 16323
24109 40638 84008 16323
24110 40637 84010 16323
24109 40637 84008 16323
24110 40636 84009 16323
24109 40636 84008 16323
24110 40635 84012 16323
24109 40635 84007 16323
24110 40634 84011 16323
24109 40634 84007 16323
24110 40633 84010 16323
24109 40633 84007 16323
24110 539 84009 16323
24109 539 84007 16323
24191 37881 84291 16443
24191 42358 84766 16443
24191 41144 84292 16443
24191 41145 84293 16443