1: 2: 3: 4: 5:
Select t2.CollectionID from Collections t1 INNER JOIN Collections t2 on t1.CollectionID = t2.ParentID where t1.Title= @title and t1.CompanyID= @companyid