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 (
    20880, 20879, 20048, 20881, 20049, 20883, 
    23768, 20486, 20487, 21484, 20489, 
    20051
  ) 
  AND pfv.product_id IN (
    2921, 2932, 5424, 2910, 5421, 2899, 3788, 
    3787, 3784, 1732, 3777, 5416
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.01971

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": 144,
          "filtered": 0.016300069,
          "attached_condition": "pfv.feature_id in (20880,20879,20048,20881,20049,20883,23768,20486,20487,21484,20489,20051) and pfv.product_id in (2921,2932,5424,2910,5421,2899,3788,3787,3784,1732,3777,5416) 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
21484 1732 75200 0 Đen
20883 2899 72977 0 Xanh dương đậm
20881 2910 72973 0 Mẫu 2
20880 2921 72971 0 Mẫu 4
20879 2932 72967 0 Xanh đen
20489 3777 71681 0 Túi thêu 3 khinh khí cầu
20487 3784 71677 0 Khủng long xanh lá
20486 3787 71675 0 Mẫu 2
23768 3788 82552 1 Màu xanh đậm
20051 5416 70120 0 Size 16
20049 5421 70117 0 Màu nhạt
20048 5424 70115 0 Màu nhạt