Joining a table with a subquery SQL Server 2008
===

I have a table where an ID can be associated with more than one bill.  What I need to do is find the `MAX` billing amount, the ID and the date of their highest (`MAX`) bill.  The problem is that there can be thousands of billsper person, and hundreds on any given date.

My query 

    select patientID, max(amountPaid) as maxPaid
    from myTable
    group by patientID

gives me what I need, minus the date.  My attempt at fixing this is

    select t.patientID, t.maxPaid, myTable.billDate
    from myTable
    inner join
    (
    select patientid, max(amountPaid) as maxPaid
    from myTable
    group by patientID
    ) as t on t.patientID=myTable.patientID and =t.maxPaid=myTable.maxPaid

The error given is `invalid column name maxPaid`.  I tried not giving the calculated field an alias but SQL Server wouldn't accept myTable.max(amountPaid) either.  What's the quickest way to fix this?  thanks in advance.