Yeah, I got it too after writing it. I thought it doesn't do a subquery... All I can say to my defense is that I wrote this a long time ago  :)