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 (
    13612, 13855, 12144, 16096, 13383, 14653, 
    16063, 13382, 12904, 14674, 13372, 
    16275, 12193, 14886, 13445, 16271, 
    13406, 13662, 13973
  )

Query time 0.00605

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": 56,
          "filtered": 100,
          "index_condition": "gp.group_id in (13612,13855,12144,16096,13383,14653,16063,13382,12904,14674,13372,16275,12193,14886,13445,16271,13406,13662,13973)"
        }
      },
      {
        "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
19613 14802 68208 12144
19613 6610 68207 12144
19665 14959 68392 12193
19665 14958 68391 12193
19665 14957 68390 12193
19665 14956 68393 12193
19665 6529 68389 12193
20452 18751 71553 12904
20452 18750 71552 12904
20452 3886 71552 12904
20979 20932 73305 13372
20979 2568 73304 13372
20989 20947 73329 13382
20989 20946 73328 13382
20989 20945 73327 13382
20989 20944 73326 13382
20989 20943 73325 13382
20989 2554 73330 13382
20990 20949 73332 13383
20990 20948 73331 13383
20990 2553 73333 13383
21014 21018 73417 13406
21014 21017 73418 13406
21014 2512 73416 13406
21053 21080 73519 13445
21053 2462 73518 13445
21230 21791 74263 13612
21230 21790 74262 13612
21230 21789 74261 13612
21230 2131 74264 13612
21293 22074 74504 13662
21293 22073 74505 13662
21293 2013 74503 13662
21512 22820 75276 13855
21512 1666 75277 13855
21645 1437 75696 13973
21645 23200 75692 13973
21645 23201 75693 13973
21645 23202 75694 13973
21645 23203 75695 13973
22387 330 78483 14653
22387 25894 78484 14653
22412 296 78619 14674
22412 26107 78618 14674
22412 26108 78620 14674
22667 27130 79355 14886
22667 2130 79354 14886
23876 38144 83067 16063
23876 38240 83068 16063
23920 38139 83197 16096
23920 38322 83198 16096
23920 38323 83199 16096
23920 38324 83200 16096
24052 40246 83810 16271
24052 40245 83809 16271
24052 40244 83808 16271
24052 40148 83807 16271
24057 40270 83835 16275
24057 40154 83831 16275
24057 40267 83832 16275
24057 40268 83833 16275
24057 40269 83834 16275