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 (
    24883, 24829, 24828, 25186, 24880, 24848, 
    24857, 24932, 24933, 24938, 24879, 
    24860, 24935, 24936
  ) 
  AND pfv.product_id IN (
    48122, 47622, 50699, 48065, 47897, 50698, 
    31318, 47929, 48695, 48676, 48715, 
    48064, 47931, 48678, 48679
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.02768

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": 219,
          "filtered": 0.025422402,
          "attached_condition": "pfv.feature_id in (24883,24829,24828,25186,24880,24848,24857,24932,24933,24938,24879,24860,24935,24936) and pfv.product_id in (48122,47622,50699,48065,47897,50698,31318,47929,48695,48676,48715,48064,47931,48678,48679) 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
24828 47622 86585 1 2 túi chườm mắt
24829 47622 86587 1 Oải hương tươi mát
24848 47897 86652 1 60ml
24857 47929 86682 1 300g
24860 47931 86688 1 300g
24879 48064 86783 1 Màu trắng
24880 48065 86786 1 Màu trắng
24883 48122 86797 2 Mèo nâu nude
24932 48695 86933 4 Set quà 200g
24933 48676 86934 1 Nến đơn 100g
24935 48678 86942 1 Nến đơn 100g
24936 48679 86946 1 Nến đơn 100g
24938 48715 86957 4 Set quà 200g
25186 31318 87894 1 1
25186 50698 87895 2 2
25186 50699 87896 3 3