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 (
    21754, 24181, 24182, 24724, 24863, 24991, 
    24988, 25141, 25174
  ) 
  AND pfv.product_id IN (
    1272, 40928, 46592, 47973, 49320, 49005, 
    50316, 50621
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.02212

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": 78,
          "filtered": 0.351107121,
          "attached_condition": "pfv.feature_id in (21754,24181,24182,24724,24863,24991,24988,25141,25174) and pfv.product_id in (1272,40928,46592,47973,49320,49005,50316,50621) 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
21754 1272 76067 0 Amber
24181 40928 84249 1 Hộp 2 hũ nến
24182 40928 84251 1 Sunday Morning
24724 46592 86237 1 Màu be
24863 47973 86701 2 be loved
24988 49005 87160 1 Màu be
24991 49320 87260 8 La Rose
25141 50316 87762 1 La Rose 4Oz
25174 50621 87851 1 Set nến Tealight 15gr