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 (
    24191, 20169, 20939, 23484, 20192, 20940, 
    20723, 23738, 20188, 20171, 20949, 
    20953, 20198
  ) 
  AND pfv.product_id IN (
    41138, 4868, 2640, 33704, 4817, 2639, 
    3193, 49256, 4821, 4864, 20838, 41136, 
    2623, 4810
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.02027

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": 184,
          "filtered": 0.562554181,
          "attached_condition": "pfv.feature_id in (24191,20169,20939,23484,20192,20940,20723,23738,20188,20171,20949,20953,20198) and pfv.product_id in (41138,4868,2640,33704,4817,2639,3193,49256,4821,4864,20838,41136,2623,4810) 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
20953 2623 73206 0 Tím
20940 2639 73137 0 Xanh dương
20939 2640 73132 0 Xanh lá
20723 3193 72398 0 200g
20198 4810 70676 0 Size 36 (24cm)
20192 4817 70655 0 Size 36 (24cm)
20188 4821 70641 0 Size 36 (24cm)
20171 4864 70583 0 50ml
20169 4868 70579 0 Cành hoa và cá
20949 20838 73180 0 Tím đậm
23484 33704 81493 1 Cao lương
24191 41136 84292 2 60cm x 60cm
24191 41138 84292 2 60cm x 60cm
23738 49256 82406 5 Xanh teal