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 (
    24836, 23521, 23432, 23233, 20077, 21323, 
    23236, 23234, 21324, 21893, 20083, 
    21322, 23235, 24974, 21594, 19747, 
    19746
  ) 
  AND pfv.product_id IN (
    47655, 34555, 33312, 31633, 5300, 1980, 
    31639, 31636, 1979, 1088, 17259, 1981, 
    31637, 48980, 1538, 15322, 6274
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.06945

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": 316,
          "filtered": 0.68637234,
          "attached_condition": "pfv.feature_id in (24836,23521,23432,23233,20077,21323,23236,23234,21324,21893,20083,21322,23235,24974,21594,19747,19746) and pfv.product_id in (47655,34555,33312,31633,5300,1980,31639,31636,1979,1088,17259,1981,31637,48980,1538,15322,6274) 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
19746 6274 68676 0 150ml
19747 15322 68680 0 500ml
20077 5300 70176 7 The Slumber
20083 17259 70234 0 The Mind
21322 1981 74590 0 Túi Zip
21323 1980 74593 0 Túi Zip
21324 1979 74596 3 Túi Zip
21594 1538 75516 0 Hũ 300gr
21893 1088 76637 0 Tròn xanh than hoa đỏ
23233 31633 80578 1 40g
23234 31636 80580 1 60g
23235 31637 80582 1 45g
23236 31639 80584 1 70g
23432 33312 81269 1 Hộp sen
23521 34555 81643 1 Hộp Đỏ - Xanh lá
24836 47655 86606 1 Mẫu vẽ hoa sen ngẫu nhiên
24974 48980 87098 1 Gió Mát