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 (
    22036, 24552, 24551, 24897, 21326, 24531, 
    24566, 24567, 20474, 24444, 23527, 
    23531, 23533, 23530, 21157, 23529, 
    24569, 23622, 23623, 21665, 21158, 
    22512
  ) 
  AND pfv.product_id IN (
    854, 44943, 48224, 1977, 44767, 44944, 
    3864, 43825, 35167, 35174, 35176, 35172, 
    2291, 35171, 44947, 35731, 23261, 2288, 
    118
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.06197

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": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rowid_filter": {
            "range": {
              "key": "fl",
              "used_key_parts": ["feature_id", "lang_code"]
            },
            "rows": 422,
            "selectivity_pct": 0.26698722
          },
          "rows": 92,
          "filtered": 2.455490589,
          "index_condition": "pfv.product_id in (854,44943,48224,1977,44767,44944,3864,43825,35167,35174,35176,35172,2291,35171,44947,35731,23261,2288,118)",
          "attached_condition": "pfv.feature_id in (22036,24552,24551,24897,21326,24531,24566,24567,20474,24444,23527,23531,23533,23530,21157,23529,24569,23622,23623,21665,21158,22512) and pfv.lang_code = 'vi'"
        }
      },
      {
        "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
22512 118 79019 0 Size nhỏ: 100gr
22036 854 77120 3 Standard 6mm
21326 1977 74602 0 Túi Zip
21158 2288 74003 0 Túi zip
21157 2291 73997 0 Gói lẻ ướp thường
20474 3864 71638 0 Trắng
21665 23261 75763 0 Trọn bộ
23527 35167 81657 1 Bông tai
23529 35171 81663 1 Bông tai
23530 35172 81665 1 Set 1
23531 35174 81667 1 Dây chuyền
23533 35176 81672 1 Dây dài 12-15cm
23623 35731 81913 1 Đỏ
23622 35731 81910 1 Mèo cái nằm
24444 43825 85255 1 Trà xanh Cao Bồ 100g + Hồng trà Vị Xuyên 50g
24531 44767 85566 1 Mùi Ruby
24551 44943 85626 1 Trắng
24552 44943 85634 1 Size S
24567 44944 85746 1 Size S
24566 44944 85738 1 Trắng
24569 44947 85757 1 Size S
24551 44947 85626 1 Trắng
24897 48224 86851 1 Hộp 8 Nụ