Syntaxe incorrecte près du mot clé 'SI'

Je suis en train de mettre IF..ELSE dans WHERE clause ci-dessous, mais se message d'erreur

"Syntaxe incorrecte près du mot clé 'SI'. Syntaxe incorrecte près de ')'."

DECLARE @categoryID int

SET @categoryID = 0

SELECT * from SE_Auctions
  WHERE ItemCategoryID IN
  (
   IF @categoryID = 0
     SELECT CategoryID from SE_ItemCategory
   ELSE
     SELECT CategoryID from SE_ItemCategory 
    WHERE ParentID = @categoryID 
          OR CategoryID = @categoryID
  )
InformationsquelleAutor Gaurav | 2012-05-31