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 (
    24996, 25008, 21386, 21623, 24830, 24144, 
    25095, 19725, 23544, 24832, 24751, 
    19937, 20472, 20381, 21222, 23686, 
    20471, 21624, 21914, 23514, 23512
  ) 
  AND pfv.product_id IN (
    49164, 49230, 1894, 23152, 47631, 49873, 
    6357, 35279, 47597, 47084, 5787, 3866, 
    18608, 2139, 42255, 40350, 3867, 23158, 
    1057, 33723
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.04412

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": "PRIMARY",
          "key_length": "6",
          "used_key_parts": ["feature_id", "product_id"],
          "rows": 449,
          "filtered": 1.206603765,
          "attached_condition": "pfv.feature_id in (24996,25008,21386,21623,24830,24144,25095,19725,23544,24832,24751,19937,20472,20381,21222,23686,20471,21624,21914,23514,23512) and pfv.product_id in (49164,49230,1894,23152,47631,49873,6357,35279,47597,47084,5787,3866,18608,2139,42255,40350,3867,23158,1057,33723) 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
19725 6357 68603 0 Rose
19937 5787 69667 0 Mix 2 vị
20381 18608 71339 0 Màu vàng mustard
20471 3867 71620 0 Heo con nhỏ
20472 3866 71625 0 4. Heo con nhỏ
21222 2139 74230 0 Túi 200gr
21386 1894 74804 0 Gỗ Thông
21623 23152 75622 0 Đũa gỗ trắc đầu vỏ ốc bọc bạc
21624 23158 75629 0 Màu Nâu Sáng
21914 1057 76706 0 Màu nâu đậm
23512 33723 81601 1 Nâu tan
23514 33723 81621 1 Con cáo
23544 35279 81705 2 Màu xanh rêu
23686 40350 82133 2 Sleep Tight
23686 42255 84725 13 Be Delighted
24144 49873 87602 4 Muối tiêu
24751 47084 86316 1 Màu nâu
24830 47631 86591 2 Sen hồng
24832 47597 86594 1 Sen trắng
24996 49164 87185 1 Seigaiha
25008 49230 87232 1 Bộ Ấm Nhỏ
25095 49873 87603 1 Lavender