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 (
    15434, 14178, 12199, 13559, 12590, 14549, 
    14619, 15172, 13155, 15439, 13152, 
    15427, 14353, 15827, 12122, 13698, 
    15715
  )

Query time 0.00748

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": 58,
          "filtered": 100,
          "index_condition": "gp.group_id in (15434,14178,12199,13559,12590,14549,14619,15172,13155,15439,13152,15427,14353,15827,12122,13698,15715)"
        }
      },
      {
        "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
19584 14747 68132 12122
19584 14742 68131 12122
19584 14741 68130 12122
19584 14740 68129 12122
19584 14739 68128 12122
19584 14738 68127 12122
19584 6646 68127 12122
19671 14966 68406 12199
19671 6521 68405 12199
20106 17732 70370 12590
20106 17731 70371 12590
20106 5143 70369 12590
20722 19588 72395 13152
20722 3195 72396 13152
20725 19591 72401 13155
20725 3190 72402 13155
21173 21585 74054 13559
21173 21584 74053 13559
21173 2236 74053 13559
21329 22147 74613 13698
21329 22146 74612 13698
21329 22145 74611 13698
21329 1973 74614 13698
21873 1125 76559 14178
21873 23992 76558 14178
22070 813 77260 14353
22070 24635 77262 14353
22070 24636 77261 14353
22269 25245 78032 14549
22269 25247 78033 14549
22351 25776 78343 14619
22351 25775 78344 14619
22351 376 78342 14619
22930 29830 79950 15172
22930 29732 79948 15172
22930 29829 79949 15172
22930 29831 79951 15172
23310 32305 80869 15427
23310 32356 80870 15427
23310 32357 80871 15427
23318 32312 80891 15434
23318 32372 80890 15434
23318 32373 80892 15434
23318 32374 80893 15434
23323 32318 80907 15439
23324 32318 80911 15439
23323 32384 80907 15439
23324 32384 80912 15439
23323 32385 80907 15439
23324 32385 80913 15439
23323 32386 80907 15439
23324 32386 80914 15439
23323 32387 80908 15439
23324 32387 80911 15439
23323 32388 80908 15439
23324 32388 80912 15439
23323 32389 80908 15439
23324 32389 80913 15439
23323 32390 80908 15439
23324 32390 80914 15439
23323 32391 80909 15439
23324 32391 80911 15439
23323 32392 80909 15439
23324 32392 80912 15439
23323 32393 80909 15439
23324 32393 80913 15439
23323 32394 80909 15439
23324 32394 80914 15439
23323 32395 80910 15439
23324 32395 80911 15439
23323 32396 80910 15439
23324 32396 80912 15439
23323 32397 80910 15439
23324 32397 80913 15439
23323 32398 80910 15439
23324 32398 80914 15439
23587 35483 81813 15715
23587 35539 81814 15715
23707 36507 82258 15827
23707 36573 82259 15827