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 (
    16436, 14059, 14060, 12672, 16443, 12668, 
    16433, 12670, 13341, 16483, 16438, 
    12671, 12669, 16422, 16488, 16484, 
    13784, 12664, 16440, 16487, 12665, 
    12666, 13344, 12667, 16423, 16486, 
    13001
  )

Query time 0.01309

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": 133,
          "filtered": 100,
          "index_condition": "gp.group_id in (16436,14059,14060,12672,16443,12668,16433,12670,13341,16483,16438,12671,12669,16422,16488,16484,13784,12664,16440,16487,12665,12666,13344,12667,16423,16486,13001)"
        }
      },
      {
        "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
20206 18123 70707 12664
20206 18122 70706 12664
20206 18121 70705 12664
20206 18120 70704 12664
20206 4803 70708 12664
20207 18124 70709 12665
20207 4801 70710 12665
20208 18126 70712 12666
20208 18125 70711 12666
20208 4799 70713 12666
20209 18129 70716 12667
20209 18128 70715 12667
20209 18127 70714 12667
20209 4797 70717 12667
20210 18134 70722 12668
20210 18133 70721 12668
20210 18132 70720 12668
20210 18131 70719 12668
20210 18130 70718 12668
20210 4795 70723 12668
20211 18139 70728 12669
20211 18138 70727 12669
20211 18137 70726 12669
20211 18136 70725 12669
20211 18135 70724 12669
20211 4793 70729 12669
20212 18143 70733 12670
20212 18142 70732 12670
20212 18141 70731 12670
20212 18140 70730 12670
20212 4789 70734 12670
20213 18147 70738 12671
20213 18146 70737 12671
20213 18145 70736 12671
20213 18144 70735 12671
20213 4787 70739 12671
20214 18151 70743 12672
20214 18150 70742 12672
20214 18149 70741 12672
20214 18148 70740 12672
20214 4785 70744 12672
20566 19200 71938 13001
20566 19199 71937 13001
20566 19198 71936 13001
20566 19197 71935 13001
20566 19196 71934 13001
20566 19195 71933 13001
20566 3596 71939 13001
20948 20837 73178 13341
20948 20836 73177 13341
20948 20835 73176 13341
20948 20834 73175 13341
20948 20833 73174 13341
20948 20832 73173 13341
20948 20831 73172 13341
20948 20830 73171 13341
20948 2628 73179 13341
20951 20849 73193 13344
20951 20848 73192 13344
20951 20847 73191 13344
20951 20846 73190 13344
20951 20845 73189 13344
20951 2625 73194 13344
21425 22533 74964 13784
21425 22532 74963 13784
21425 22531 74962 13784
21425 22530 74961 13784
21425 1840 74965 13784
21738 23462 76016 14059
21738 23461 76015 14059
21738 23460 76014 14059
21738 23459 76013 14059
21738 1306 76017 14059
21739 23466 76021 14060
21739 23465 76020 14060
21739 23464 76019 14060
21739 23463 76018 14060
21739 1305 76022 14060
24191 42343 84766 16422
24191 41102 84292 16422
24191 41103 84293 16422
24191 41104 84292 16423
24191 37895 84291 16423
24191 41105 84293 16423
24191 37886 84291 16433
24191 42359 84766 16433
24191 41124 84292 16433
24191 41125 84293 16433
24191 42361 84766 16436
24191 37904 84291 16436
24191 41130 84292 16436
24191 41131 84293 16436
24191 42344 84766 16438
24191 41134 84292 16438
24191 41135 84293 16438
24191 37902 84291 16440
24191 42348 84766 16440
24191 41138 84292 16440
24191 41139 84293 16440
24191 37881 84291 16443
24191 42358 84766 16443
24191 41144 84292 16443
24191 41145 84293 16443
24225 41423 84401 16483
24225 41459 84402 16483
24225 41460 84403 16483
24225 41461 84404 16483
24226 41424 84405 16484
24226 41462 84406 16484
24226 41463 84407 16484
24226 41464 84408 16484
24228 41426 84413 16486
24228 41468 84414 16486
24228 41469 84415 16486
24228 41470 84416 16486
24228 41471 84417 16486
24229 41427 84418 16487
24229 41472 84419 16487
24229 41473 84420 16487
24229 41474 84421 16487
24230 41428 84422 16488
24230 41475 84423 16488
24230 41476 84424 16488
24230 41477 84425 16488