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 = 'en' 
WHERE 
  pfv.feature_id IN (549, 596, 731, 987) 
  AND pfv.product_id IN (
    18508, 18520, 19936, 19937, 19938, 19939, 
    19940, 19941
  ) 
  AND pfv.lang_code = 'en'

Query time 0.00062

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.0888498,
    "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": "fl",
          "key_length": "9",
          "used_key_parts": ["feature_id", "lang_code"],
          "loops": 1,
          "rows": 104,
          "cost": 0.02177524,
          "filtered": 30.76922989,
          "attached_condition": "pfv.feature_id in (549,596,731,987) and pfv.product_id in (18508,18520,19936,19937,19938,19939,19940,19941) and pfv.lang_code = 'en'",
          "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": ["u508912950_dev_2025.pfv.variant_id"],
          "loops": 32,
          "rows": 1,
          "cost": 0.03189888,
          "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": ["u508912950_dev_2025.pfv.variant_id", "const"],
          "loops": 32,
          "rows": 1,
          "cost": 0.03517568,
          "filtered": 100,
          "attached_condition": "fvd.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
549 18508 12528 0 Black
549 18520 12528 0 Black
596 18520 12541 0 XS
596 18508 12544 30 L
731 19937 13331 0 Blue
731 19938 13331 0 Blue
731 19936 13950 0 Gray
731 19939 13950 0 Gray
731 19940 13951 0 Black
731 19941 13951 0 Black
987 19936 13952 0 Single
987 19937 13952 0 Single
987 19940 13952 0 Single
987 19938 13953 0 Twin
987 19939 13953 0 Twin
987 19941 13953 0 Twin