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 (
    17242, 16123, 12891, 12745, 14069, 15863, 
    16664, 12888, 15865, 16663, 12887, 
    13641
  )

Query time 0.01288

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": 89,
          "filtered": 100,
          "index_condition": "gp.group_id in (17242,16123,12891,12745,14069,15863,16664,12888,15865,16663,12887,13641)"
        }
      },
      {
        "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
20287 18309 70974 12745
20287 18308 70973 12745
20287 4373 70975 12745
20435 18723 71508 12887
20435 3979 71509 12887
20436 3978 71511 12888
20436 38779 71510 12888
20439 18731 71520 12891
20439 18730 71519 12891
20439 18729 71518 12891
20439 3975 71521 12891
21271 22017 74428 13641
21271 22016 74427 13641
21271 22015 74426 13641
21271 22014 74425 13641
21271 22013 74424 13641
21271 22012 74423 13641
21271 22011 74422 13641
21271 2047 74429 13641
21748 23481 76046 14069
21748 1287 76045 14069
23739 36308 82407 15863
23739 36711 82408 15863
23739 36712 82409 15863
23739 36713 82410 15863
23739 36714 82411 15863
23739 36715 82412 15863
23741 36717 82416 15865
23741 36718 82417 15865
23741 36719 82418 15865
23951 38552 83392 16123
23952 38552 83399 16123
23951 38569 83392 16123
23952 38569 83400 16123
23951 38570 83392 16123
23952 38570 83401 16123
23951 38571 83392 16123
23952 38571 83402 16123
23951 38572 83392 16123
23952 38572 83403 16123
23951 38573 83392 16123
23952 38573 83404 16123
23951 38574 83392 16123
23952 38574 83405 16123
23951 38575 83393 16123
23952 38575 83399 16123
23951 38576 83393 16123
23952 38576 83400 16123
23951 38577 83393 16123
23952 38577 83401 16123
23951 38578 83393 16123
23952 38578 83402 16123
23951 38579 83393 16123
23952 38579 83403 16123
23951 38580 83393 16123
23952 38580 83404 16123
23951 38581 83393 16123
23952 38581 83405 16123
23951 38582 83394 16123
23952 38582 83399 16123
23951 38583 83394 16123
23952 38583 83400 16123
23951 38584 83394 16123
23952 38584 83401 16123
23951 38585 83394 16123
23952 38585 83402 16123
23951 38586 83394 16123
23952 38586 83403 16123
23951 38587 83394 16123
23952 38587 83404 16123
23951 38588 83394 16123
23952 38588 83405 16123
23951 38589 83395 16123
23952 38589 83399 16123
23951 38590 83395 16123
23952 38590 83400 16123
23951 38591 83395 16123
23952 38591 83401 16123
23951 38592 83395 16123
23952 38592 83402 16123
23951 38593 83395 16123
23952 38593 83403 16123
23951 38594 83395 16123
23952 38594 83404 16123
23951 38595 83395 16123
23952 38595 83405 16123
23951 38596 83396 16123
23952 38596 83399 16123
23951 38597 83396 16123
23952 38597 83400 16123
23951 38598 83396 16123
23952 38598 83401 16123
23951 38599 83396 16123
23952 38599 83402 16123
23951 38600 83396 16123
23952 38600 83403 16123
23951 38601 83396 16123
23952 38601 83404 16123
23951 38602 83396 16123
23952 38602 83405 16123
23951 38603 83397 16123
23952 38603 83399 16123
23951 38604 83397 16123
23952 38604 83400 16123
23951 38605 83397 16123
23952 38605 83401 16123
23951 38606 83397 16123
23952 38606 83402 16123
23951 38607 83397 16123
23952 38607 83403 16123
23951 38608 83397 16123
23952 38608 83404 16123
23951 38609 83397 16123
23952 38609 83405 16123
23951 38610 83398 16123
23952 38610 83399 16123
23951 38611 83398 16123
23952 38611 83400 16123
23951 38612 83398 16123
23952 38612 83401 16123
23951 38613 83398 16123
23952 38613 83402 16123
23951 38614 83398 16123
23952 38614 83403 16123
23951 38615 83398 16123
23952 38615 83404 16123
23951 38616 83398 16123
23952 38616 83405 16123
24437 43650 85227 16663
24437 43799 85228 16663
24437 43800 85229 16663
24437 43801 85230 16663
24437 43802 85231 16663
24437 43803 85232 16663
24437 43804 85233 16663
24437 43805 85234 16663
24438 43651 85235 16664
24438 43806 85236 16664
24438 43807 85237 16664
24997 46690 87190 17242
24997 49169 87191 17242
24997 49170 87192 17242