• Sorry, forgot to add that I tried adding this...

    DECLARE @WEBfeWBPhaseID as int

    SET @WEBfeWBPhaseID = ?

    and then just using @WEBfeWBPhaseID when I need it but I get the same error.