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 (
    13528, 14874, 16996, 17304, 16992, 16995, 
    16994, 16993, 17305, 16984, 17306, 
    17307, 16986, 16987
  )

Query time 0.00208

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": 58,
          "filtered": 100,
          "index_condition": "gp.group_id in (13528,14874,16996,17304,16992,16995,16994,16993,17305,16984,17306,17307,16986,16987)"
        }
      },
      {
        "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
21140 21463 73924 13528
21140 2320 73923 13528
22654 2319 79318 14874
22654 27104 79319 14874
24744 47103 86299 16984
24744 47102 86298 16984
24744 47012 86297 16984
24744 47014 86297 16986
24744 47106 86298 16986
24744 47107 86299 16986
24744 47108 86298 16987
24744 47015 86297 16987
24744 47109 86299 16987
24745 47020 86300 16992
24745 49813 87462 16992
24745 49812 87461 16992
24745 47118 86301 16992
24745 49811 87462 16993
24745 49810 87461 16993
24745 47119 86301 16993
24745 47021 86300 16993
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
25062 49806 87452 17304
25062 41293 87451 17304
25064 49807 87456 17305
25064 41292 87455 17305
25065 49808 87458 17306
25065 41291 87457 17306
25066 49809 87460 17307
25066 41294 87459 17307