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 (
    14837, 16438, 12669, 15840, 16422, 14826, 
    15736, 15440, 16660, 15410, 15898, 
    15859, 14835, 17030, 15428, 16488, 
    12653
  )

Query time 0.01996

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": 72,
          "filtered": 100,
          "index_condition": "gp.group_id in (14837,16438,12669,15840,16422,14826,15736,15440,16660,15410,15898,15859,14835,17030,15428,16488,12653)"
        }
      },
      {
        "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
20184 17984 70631 12653
20184 17980 70630 12653
20184 17979 70629 12653
20184 17978 70628 12653
20184 17977 70627 12653
20184 4826 70627 12653
20211 18139 70728 12669
20211 18138 70727 12669
20211 18137 70726 12669
20211 18136 70725 12669
20211 18135 70724 12669
20211 4793 70729 12669
22566 26662 79215 14826
22566 26663 79216 14826
22566 2248 79214 14826
22574 26842 79237 14835
22574 26843 79238 14835
22574 2256 79236 14835
22577 2259 79245 14837
22577 26682 79246 14837
22577 26683 79247 14837
23286 32185 80794 15410
23286 32228 80795 15410
23311 32306 80872 15428
23311 32358 80873 15428
23325 32319 80915 15440
23325 32399 80916 15440
23609 35735 81862 15736
23609 35755 81863 15736
23717 36494 82333 15840
23717 36641 82334 15840
23735 36303 82389 15859
23735 49260 82393 15859
23735 49259 82392 15859
23735 49258 82391 15859
23735 49257 82390 15859
23781 37297 82662 15898
23781 37338 82663 15898
23781 37339 82664 15898
23781 37340 82665 15898
23781 37341 82666 15898
23781 37342 82667 15898
23781 37343 82668 15898
24191 42343 84766 16422
24191 41102 84292 16422
24191 41103 84293 16422
24191 42344 84766 16438
24191 41134 84292 16438
24191 41135 84293 16438
24230 41428 84422 16488
24230 41475 84423 16488
24230 41476 84424 16488
24230 41477 84425 16488
24436 4588 85225 16660
24436 43796 85226 16660
24780 47277 86432 17030
24780 47330 86440 17030
24780 47321 86441 17030
24780 47329 86439 17030
24780 47322 86442 17030
24780 47323 86433 17030
24780 47328 86438 17030
24780 47324 86434 17030
24780 47327 86437 17030
24780 47325 86435 17030
24780 47326 86436 17030