SELECT DISTINCT PlaceID, Description FROM Verified.Places WHERE PlaceStatusID = 1 AND (CASE WHEN ISNULL(@SearchText, '') <> '' THEN CASE WHEN Description LIKE '%' + @SearchText + '%' THEN 1 ELSE 0 END ELSE 1 END) = 1 AND (CASE WHEN ISNULL(@PlaceID, '') <> '' THEN CASE WHEN PlaceID = @PlaceID THEN 1 ELSE 0 END ELSE 1 END) = 1 ORDER BY Description ASC