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 (
    23538, 20979, 19647, 19646, 19651, 19650, 
    20439, 20450, 23535, 21943, 20451, 
    20449, 23913, 24836
  ) 
  AND pfv.product_id IN (
    35254, 20932, 6558, 6559, 6554, 6555, 
    3975, 18748, 35187, 992, 18749, 18747, 
    38129, 47652
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.02443

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": 197,
          "filtered": 0.033176981,
          "attached_condition": "pfv.feature_id in (23538,20979,19647,19646,19651,19650,20439,20450,23535,21943,20451,20449,23913,24836) and pfv.product_id in (35254,20932,6558,6559,6554,6555,3975,18748,35187,992,18749,18747,38129,47652) 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
21943 992 76827 0 Bông tai
20439 3975 71521 0 Chuồn chuồn hoa
19651 6554 68353 0 Full moon
19650 6555 68348 0 My rose (Bản giới hạn)
19647 6558 68331 0 Balance
19646 6559 68328 0 Balance
20449 18747 71547 0 Vỏ gối kèm ruột
20450 18748 71549 0 Vỏ gối kèm ruột
20451 18749 71551 0 Vỏ gối kèm ruột
20979 20932 73305 0 Thùng 12 chai
23535 35187 81676 1 Màu đen
23538 35254 81686 2 Đen
23913 38129 83177 1 Xám đậm
24836 47652 86606 1 Mẫu vẽ hoa sen ngẫu nhiên