SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  fv.position, 
  fvd.variant 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_feature_variants AS fv ON pfv.feature_id = fv.feature_id 
  AND pfv.variant_id = fv.variant_id 
  INNER JOIN cscart_product_feature_variant_descriptions AS fvd ON pfv.variant_id = fvd.variant_id 
  AND fvd.lang_code = 'vi' 
WHERE 
  pfv.feature_id IN (
    21220, 24226, 20027, 21418, 24438, 21467, 
    24229, 23275, 20436, 20053, 22642, 
    22627, 22645
  ) 
  AND pfv.product_id IN (
    2148, 41424, 5485, 1852, 43651, 1769, 
    41427, 31950, 3978, 5412, 47253, 17875, 
    4903
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.04396

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "variant_id",
            "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"],
          "rows": 171,
          "filtered": 0.027656941,
          "attached_condition": "pfv.feature_id in (21220,24226,20027,21418,24438,21467,24229,23275,20436,20053,22642,22627,22645) and pfv.product_id in (2148,41424,5485,1852,43651,1769,41427,31950,3978,5412,47253,17875,4903) and pfv.lang_code = 'vi'",
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "fv",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY", "feature_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["variant_id"],
          "ref": ["dev_db.pfv.variant_id"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "fv.feature_id = pfv.feature_id"
        }
      },
      {
        "table": {
          "table_name": "fvd",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["variant_id", "lang_code"],
          "ref": ["dev_db.pfv.variant_id", "const"],
          "rows": 1,
          "filtered": 100,
          "index_condition": "fvd.lang_code = 'vi'"
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
21467 1769 75145 0 Set quà tặng Newborn baby #3
21418 1852 74937 0 Hồng hoa văn trắng
21220 2148 74227 0 Màu xám loang
20436 3978 71511 0 Hoa văn tối
22645 4903 79291 0 Khóa bướm
20053 5412 70125 0 Màu nhạt
20027 5485 70007 0 Mẫu 1
22627 17875 79255 0 Khóa bướm
23275 31950 80734 1 Đen
24226 41424 84405 1 Xanh lá
24229 41427 84418 1 Đỏ
24438 43651 85235 1 Mẫu 1
22642 47253 79285 2 Khóa bướm