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 (
    20346, 24436, 19793, 22383, 19958, 24191, 
    20227, 20210, 24137, 24138, 24836, 
    22832, 24141
  ) 
  AND pfv.product_id IN (
    4237, 43798, 6070, 335, 5726, 37881, 
    18194, 4795, 40754, 47652, 27056, 40807
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.05501

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": 158,
          "filtered": 0.469060689,
          "attached_condition": "pfv.feature_id in (20346,24436,19793,22383,19958,24191,20227,20210,24137,24138,24836,22832,24141) and pfv.product_id in (4237,43798,6070,335,5726,37881,18194,4795,40754,47652,27056,40807) 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
22383 335 78476 0 Tóc Nhuộm
20346 4237 71205 0 My beaute
20210 4795 70723 0 Màu cam loang
19958 5726 69750 0 Nâu rêu
19793 6070 68828 0 Bó hoa hồng
20227 18194 70800 0 Hũ lớn
22832 27056 79647 0 500g
24191 37881 84291 1 Twilly 120cm x 5cm
24137 40754 84125 1 18 x 12 x 2cm
24138 40754 84128 1 Xanh lá
24141 40807 84144 1 127g
24436 43798 85226 0 Hũ lớn
24836 47652 86606 1 Mẫu vẽ hoa sen ngẫu nhiên