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 (
    23184, 24842, 21339, 20474, 23527, 24551, 
    24569, 20545, 24867, 24606, 22626, 
    23526, 23528, 25064, 21596, 24744
  ) 
  AND pfv.product_id IN (
    30368, 47828, 1945, 3864, 35167, 44947, 
    49192, 47974, 45446, 27262, 35166, 
    35169, 41292, 1535, 47012
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.06708

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": 255,
          "filtered": 0.463542312,
          "attached_condition": "pfv.feature_id in (23184,24842,21339,20474,23527,24551,24569,20545,24867,24606,22626,23526,23528,25064,21596,24744) and pfv.product_id in (30368,47828,1945,3864,35167,44947,49192,47974,45446,27262,35166,35169,41292,1535,47012) 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
20474 3864 71638 0 Trắng
20545 49192 71868 0 Be mine
21339 1945 74648 0 Cô gái đọc sách
21596 1535 75519 0 Túi 250gr
22626 27262 79252 0 Pick Me
23184 30368 80381 2 Nourishing & Healing
23526 35166 81655 1 Bông tai
23527 35167 81657 1 Bông tai
23528 35169 81660 1 Bông tai
24551 44947 85626 1 Trắng
24569 44947 85757 1 Size S
24606 45446 85872 10 Summer tea
24744 47012 86297 1 Size S
24842 47828 86637 1 10ml
24867 47974 86716 1 Mẫu 1
25064 41292 87455 0 Size S