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 (
    13747, 17242, 17241, 17253, 17080, 15804, 
    16573, 17090, 15564, 12572, 16996, 
    16992, 16995, 16994
  )

Query time 0.00433

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": 87,
          "filtered": 100,
          "index_condition": "gp.group_id in (13747,17242,17241,17253,17080,15804,16573,17090,15564,12572,16996,16992,16995,16994)"
        }
      },
      {
        "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
20077 16888 70183 12572
20077 16881 70182 12572
20077 16880 70181 12572
20077 16879 70180 12572
20077 16878 70179 12572
20077 16877 70178 12572
20077 16876 70177 12572
20077 16875 70176 12572
20077 5300 70176 12572
21387 22404 74805 13747
21387 1893 74806 13747
23432 33312 81269 15564
23432 33315 81270 15564
23686 42255 84725 15804
23686 42254 84724 15804
23686 40319 83867 15804
23686 6572 82132 15804
23686 36264 82134 15804
23686 36263 82133 15804
23686 36265 82135 15804
23686 37256 82657 15804
23686 37257 82658 15804
23686 37258 82659 15804
23686 37259 82660 15804
23686 37260 82661 15804
23686 42253 83868 15804
23686 42294 82658 16573
23686 42293 82657 16573
23686 42292 82135 16573
23686 42290 82132 16573
23686 42289 84725 16573
23686 42288 84724 16573
23686 42287 83868 16573
23686 42291 82134 16573
23686 40350 82133 16573
23686 42286 83867 16573
23686 42295 82659 16573
23686 42296 82660 16573
23686 42297 82661 16573
24745 47020 86300 16992
24745 49813 87462 16992
24745 49812 87461 16992
24745 47118 86301 16992
24746 49819 87464 16994
24746 49818 87463 16994
24746 47120 86303 16994
24746 47022 86302 16994
24746 49817 87464 16995
24746 49816 87463 16995
24746 47121 86303 16995
24746 47023 86302 16995
24746 49815 87464 16996
24746 49814 87463 16996
24746 47122 86303 16996
24746 47024 86302 16996
24830 47595 86590 17080
24830 47631 86591 17080
24836 47655 86606 17090
24836 47691 86607 17090
24836 47692 86608 17090
24996 49164 87185 17241
24996 49174 87189 17241
24996 49173 87188 17241
24996 49172 87187 17241
24996 49171 87186 17241
24997 46690 87190 17242
24997 49169 87191 17242
24997 49170 87192 17242
25008 49230 87232 17253
25008 49323 87233 17253