Actually, I believe that he did, but I think he had a Type-o. Below is an updated version of the Query that had your latest mod in it.
I believe that the Ref was intended to be Rev, and that LastRev is an Alias label for the returned value of the Max() Function.
-- Rookie
SELECT [Ref]...