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 (
    13261, 16846, 17119, 13546, 12914, 16721, 
    13262, 16930, 14616, 12913, 14770, 
    15873, 12591, 12908, 12911, 12139
  )

Query time 0.01900

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": 105,
          "filtered": 100,
          "index_condition": "gp.group_id in (13261,16846,17119,13546,12914,16721,13262,16930,14616,12913,14770,15873,12591,12908,12911,12139)"
        }
      },
      {
        "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
19607 14794 68196 12139
19607 6615 68195 12139
20107 17734 70373 12591
20107 17733 70374 12591
20107 5141 70372 12591
20458 18761 71565 12908
20458 3880 71566 12908
20461 18764 71571 12911
20461 3877 71572 12911
20463 18768 71578 12913
20463 18767 71576 12913
20463 3875 71577 12913
20464 18770 71581 12914
20464 18769 71579 12914
20464 3874 71580 12914
20860 20644 72909 13261
20860 2922 72910 13261
20861 20645 72911 13262
20861 2920 72912 13262
21160 21550 74006 13546
21160 2278 74007 13546
22348 382 78331 14616
22348 25767 78332 14616
22517 112 79034 14770
22517 50110 79035 14770
23752 72 82440 15873
23752 36746 82441 15873
24485 44424 85404 16721
24486 44424 85415 16721
24485 44432 85413 16721
24486 44432 85415 16721
24485 44433 85413 16721
24486 44433 85416 16721
24485 44434 85414 16721
24486 44434 85415 16721
24485 44435 85414 16721
24486 44435 85416 16721
24485 44436 85404 16721
24486 44436 85416 16721
24485 44437 85405 16721
24486 44437 85415 16721
24485 44438 85405 16721
24486 44438 85416 16721
24485 44439 85406 16721
24486 44439 85415 16721
24485 44440 85406 16721
24486 44440 85416 16721
24485 44441 85407 16721
24486 44441 85415 16721
24485 44442 85407 16721
24486 44442 85416 16721
24485 44443 85408 16721
24486 44443 85415 16721
24485 44444 85408 16721
24486 44444 85416 16721
24485 44445 85409 16721
24486 44445 85415 16721
24485 44446 85409 16721
24486 44446 85416 16721
24485 44447 85410 16721
24486 44447 85415 16721
24485 44448 85410 16721
24486 44448 85416 16721
24485 44449 85411 16721
24486 44449 85415 16721
24485 44450 85411 16721
24486 44450 85416 16721
24485 44451 85412 16721
24486 44451 85415 16721
24485 44452 85412 16721
24486 44452 85416 16721
24621 45507 85931 16846
24621 45532 85932 16846
24703 46748 86164 16930
24703 49306 86163 16930
24703 49305 87193 16930
24703 49307 86162 16930
24865 47927 86706 17119
24866 47927 86711 17119
24865 47982 86706 17119
24866 47982 86712 17119
24865 47983 86706 17119
24866 47983 86713 17119
24865 47984 86706 17119
24866 47984 86714 17119
24865 47985 86706 17119
24866 47985 86715 17119
24865 47986 86707 17119
24866 47986 86711 17119
24865 47987 86707 17119
24866 47987 86712 17119
24865 47988 86707 17119
24866 47988 86713 17119
24865 47989 86707 17119
24866 47989 86714 17119
24865 47990 86707 17119
24866 47990 86715 17119
24865 47991 86708 17119
24866 47991 86711 17119
24865 47992 86708 17119
24866 47992 86712 17119
24865 47993 86708 17119
24866 47993 86713 17119
24865 47994 86708 17119
24866 47994 86714 17119
24865 47995 86708 17119
24866 47995 86715 17119
24865 47996 86709 17119
24866 47996 86711 17119
24865 47997 86709 17119
24866 47997 86712 17119
24865 47998 86709 17119
24866 47998 86713 17119
24865 47999 86709 17119
24866 47999 86714 17119
24865 48000 86709 17119
24866 48000 86715 17119
24865 48001 86710 17119
24866 48001 86711 17119
24865 48002 86710 17119
24866 48002 86712 17119
24865 48003 86710 17119
24866 48003 86713 17119
24865 48004 86710 17119
24866 48004 86714 17119
24865 48005 86710 17119
24866 48005 86715 17119