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 (
    13157, 15596, 13434, 12288, 13156, 13054, 
    14395, 16536, 13158, 14672, 13419, 
    15828, 14018, 12475, 12589, 16999, 
    17365
  )

Query time 0.01980

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": 90,
          "filtered": 100,
          "index_condition": "gp.group_id in (13157,15596,13434,12288,13156,13054,14395,16536,13158,14672,13419,15828,14018,12475,12589,16999,17365)"
        }
      },
      {
        "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
19773 15451 68775 12288
19773 15450 68774 12288
19773 6197 68776 12288
19973 16505 69804 12475
19973 5656 69803 12475
20105 17730 70367 12589
20105 17729 70368 12589
20105 5146 70366 12589
20621 19311 72105 13054
20621 3465 72104 13054
20726 19592 72403 13156
20726 3189 72404 13156
20727 19599 72411 13157
20727 19598 72410 13157
20727 19597 72409 13157
20727 19596 72408 13157
20727 19595 72407 13157
20727 19594 72406 13157
20727 19593 72405 13157
20727 3187 72412 13157
20728 19600 72413 13158
20728 3186 72414 13158
21027 21046 73458 13419
21027 21045 73457 13419
21027 21044 73456 13419
21027 21043 73459 13419
21027 2499 73455 13419
21042 21069 73496 13434
21042 2473 73497 13434
21696 1375 75872 14018
21696 23354 75874 14018
21696 23355 75873 14018
22112 24747 77414 14395
22112 24746 77413 14395
22112 735 77415 14395
22410 26099 78608 14672
22410 298 78609 14672
23469 33606 81440 15596
23470 33606 81445 15596
23469 33620 81440 15596
23470 33620 81446 15596
23469 33621 81440 15596
23470 33621 81447 15596
23469 33622 81441 15596
23470 33622 81445 15596
23469 33623 81441 15596
23470 33623 81446 15596
23469 33624 81441 15596
23470 33624 81447 15596
23469 33625 81442 15596
23470 33625 81445 15596
23469 33626 81442 15596
23470 33626 81446 15596
23469 33627 81442 15596
23470 33627 81447 15596
23469 33628 81443 15596
23470 33628 81445 15596
23469 33629 81443 15596
23470 33629 81446 15596
23469 33630 81443 15596
23470 33630 81447 15596
23469 33631 81444 15596
23470 33631 81445 15596
23469 33632 81444 15596
23470 33632 81446 15596
23469 33633 81444 15596
23470 33633 81447 15596
23707 36574 82259 15828
23707 36506 82258 15828
24288 42023 84630 16536
24288 42022 84629 16536
24288 42021 84628 16536
24288 42020 84627 16536
24288 42019 84626 16536
24288 42018 84625 16536
24288 42017 84624 16536
24288 42016 84623 16536
24288 42015 84633 16536
24288 42014 84632 16536
24288 42013 84631 16536
24288 41945 84622 16536
24749 47127 86311 16999
24749 47126 86310 16999
24749 47082 86309 16999
24263 50407 84554 17365
24263 50409 84556 17365
24263 50408 84555 17365
24263 50406 84553 17365
24263 50404 84562 17365
24263 50395 84552 17365
24263 50403 84561 17365
24263 50405 84563 17365
24263 50413 84560 17365
24263 50412 84559 17365
24263 50411 84558 17365
24263 50410 84557 17365