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 (
    12888, 12889, 15862, 15864, 12737, 12892, 
    14830, 15624, 12881, 15865, 16663, 
    14827, 16312, 14634, 15854, 15644, 
    14838, 15857, 16310, 16315, 16457, 
    14516, 16945, 12887, 15852, 12882, 
    15626
  )

Query time 0.00492

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": 114,
          "filtered": 100,
          "index_condition": "gp.group_id in (12888,12889,15862,15864,12737,12892,14830,15624,12881,15865,16663,14827,16312,14634,15854,15644,14838,15857,16310,16315,16457,14516,16945,12887,15852,12882,15626)"
        }
      },
      {
        "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
20279 18293 70950 12737
20279 18292 70949 12737
20279 4381 70951 12737
20429 18709 71488 12881
20429 18708 71487 12881
20429 3988 71489 12881
20430 18712 71492 12882
20430 18710 71490 12882
20430 40751 71493 12882
20430 40750 71491 12882
20435 18723 71508 12887
20435 3979 71509 12887
20436 3978 71511 12888
20436 38779 71510 12888
20437 18726 71513 12889
20437 18725 71512 12889
20437 3977 71514 12889
20440 38781 71524 12892
20440 18732 71522 12892
20440 3974 71526 12892
20440 38782 71525 12892
20440 38780 71523 12892
22236 543 77914 14516
22236 25158 77912 14516
22236 25159 77913 14516
22367 25849 78424 14634
22367 25848 78423 14634
22367 25847 78425 14634
22367 353 78422 14634
22568 2249 79217 14827
22568 26664 79218 14827
22568 26665 79219 14827
22571 2252 79226 14830
22571 26670 79227 14830
22571 26671 79228 14830
22578 2260 79248 14838
22578 26684 79249 14838
22578 26685 79250 14838
23494 33709 81534 15624
23494 33831 81535 15624
23496 33833 81539 15626
23496 33834 81540 15626
23496 33835 81538 15626
23512 33721 81601 15644
23512 34036 81610 15644
23512 34037 81611 15644
23512 34038 81612 15644
23512 34039 81613 15644
23512 34040 81614 15644
23512 34041 81615 15644
23512 34042 81616 15644
23512 34043 81617 15644
23512 34044 81602 15644
23512 34045 81603 15644
23512 34046 81604 15644
23512 34047 81605 15644
23512 34048 81606 15644
23512 34049 81607 15644
23512 34050 81608 15644
23512 34051 81609 15644
23728 36293 82362 15852
23728 36679 82363 15852
23728 36680 82364 15852
23728 36681 82365 15852
23728 36682 82366 15852
23728 36683 82367 15852
23730 36295 82372 15854
23730 36687 82373 15854
23730 36688 82374 15854
23730 36689 82375 15854
23733 36300 82383 15857
23733 36695 82384 15857
23733 36696 82385 15857
23738 36306 82402 15862
23738 49256 82406 15862
23738 49255 82405 15862
23738 49254 82404 15862
23738 49253 82403 15862
23740 36307 82413 15864
23740 36716 82414 15864
23741 36717 82416 15865
23741 36718 82417 15865
23741 36719 82418 15865
24094 40532 83946 16310
24094 40562 83947 16310
24094 40563 83948 16310
24094 40564 83949 16310
24094 40565 83950 16310
24096 40580 83970 16312
24096 40579 83969 16312
24096 40578 83968 16312
24096 40577 83967 16312
24096 40576 83966 16312
24096 40575 83965 16312
24096 40535 83964 16312
24095 40598 83961 16315
24095 40597 83960 16315
24095 40527 83954 16315
24095 40592 83955 16315
24095 40593 83956 16315
24095 40594 83957 16315
24095 40595 83958 16315
24095 40596 83959 16315
24201 41230 84325 16457
24201 41242 84326 16457
24201 41243 84327 16457
24201 41244 84328 16457
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
24717 49308 86218 16945
24717 46818 86219 16945
24717 49309 86220 16945