I have the following code:
select FeeEarnerID, (select (select [name] from [User] AS u where u.userid=f.userid) from feeearner AS f where f.FeeEarnerID=aa.FeeEar