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 (
    20234, 25095, 25096, 24703, 21383, 22337, 
    23357, 21044, 19804, 21655, 19923, 
    19649, 23699, 23700, 19811, 19644
  ) 
  AND pfv.product_id IN (
    18201, 40824, 49306, 1897, 401, 6058, 
    6061, 2471, 6063, 6062, 1429, 5834, 
    6057, 6556, 36399, 6056, 6561
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.00815

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": 296,
          "filtered": 0.619603813,
          "attached_condition": "pfv.feature_id in (20234,25095,25096,24703,21383,22337,23357,21044,19804,21655,19923,19649,23699,23700,19811,19644) and pfv.product_id in (18201,40824,49306,1897,401,6058,6061,2471,6063,6062,1429,5834,6057,6556,36399,6056,6561) 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
19644 6561 68323 0 Balance
19649 6556 68342 0 Full moon
19804 6063 68883 0 50g
19811 6056 68897 1 Hộp 50g
19923 5834 69619 0 4 chai
20234 18201 70814 0 Hũ lớn
21044 2471 73501 0 30ml
21383 1897 74795 0 Hạt gỗ 6 ly (1 vòng)
21655 1429 75729 0 Màu xanh dương (70 x 70 cm)
22337 401 78289 0 Túi zip - 10g
23357 6057 81032 1 Hộp 50gr
23357 6058 81032 1 Hộp 50gr
23357 6061 81032 1 Hộp 50gr
23357 6062 81032 1 Hộp 50gr
23699 36399 82207 2 Set 2 bao gối
23700 36399 82217 10 Xanh Mint
24703 49306 86163 3 Nâu đậm
25095 40824 87603 1 Lavender
25096 40824 87605 0 "happy birthday + hoa" - Màu Muối Tiêu