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 (
    20607, 20609, 20598, 23469, 23470, 19939, 
    21672, 21659, 21670, 23449, 23313, 
    23314, 20645, 20574, 23626, 23325, 
    21657
  ) 
  AND pfv.product_id IN (
    3525, 3523, 3534, 33606, 5776, 1407, 
    1417, 1406, 32360, 3409, 19210, 35733, 
    32319, 1419
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.01936

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": 262,
          "filtered": 0.03654331,
          "attached_condition": "pfv.feature_id in (20607,20609,20598,23469,23470,19939,21672,21659,21670,23449,23313,23314,20645,20574,23626,23325,21657) and pfv.product_id in (3525,3523,3534,33606,5776,1407,1417,1406,32360,3409,19210,35733,32319,1419) 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
19939 5776 69671 0 Men đen matte
20574 19210 71956 0 Sparkle Night
20598 3534 72040 0 Pipa D4
20607 3525 72068 0 Osaka
20609 3523 72074 0 Polka Dots
20645 3409 72162 0 Size nhỏ
21657 1419 75740 0 Nâu cà phê
21659 1417 75747 0 Bộ cốc cà phê lớn
21670 1406 75781 0 Men hỏa biến xám xanh
21672 1407 75787 0 Men hỏa biến xanh sóng biển
23313 32360 80876 1 Bình nhỏ
23314 32360 80879 2 Men nửa bình - Đỏ cam
23325 32319 80915 1 Màu xanh dương giả cổ
23449 1406 81344 1 S1
23469 33606 81440 1 Chó con 1
23470 33606 81445 1 Xanh lam
23626 35733 81927 1 Vàng