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) 
  AND pfv.product_id IN (
    18508, 18509, 18510, 18511, 18513, 18514, 
    18515, 18516, 18517, 18518, 18519
  ) 
  AND pfv.lang_code = 'en'

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.06761854,
    "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": 92,
          "cost": 0.01843278,
          "filtered": 23.91304398,
          "attached_condition": "pfv.feature_id in (549,596) and pfv.product_id in (18508,18509,18510,18511,18513,18514,18515,18516,18517,18518,18519) 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": 22,
          "rows": 1,
          "cost": 0.02295448,
          "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": 22,
          "rows": 1,
          "cost": 0.02623128,
          "filtered": 100,
          "attached_condition": "fvd.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
549 18508 12528 0 Black
549 18509 12528 0 Black
549 18510 12537 0 Orange
549 18511 12537 0 Orange
549 18513 12537 0 Orange
549 18514 12537 0 Orange
549 18515 13064 0 Gray
549 18516 13064 0 Gray
549 18517 13064 0 Gray
549 18518 13064 0 Gray
549 18519 13064 0 Gray
596 18510 12541 0 XS
596 18515 12541 0 XS
596 18511 12542 10 S
596 18516 12542 10 S
596 18517 12543 20 M
596 18508 12544 30 L
596 18513 12544 30 L
596 18518 12544 30 L
596 18509 12545 40 XL
596 18514 12545 40 XL
596 18519 12545 40 XL