toptensoftware/PetaPoco — pull request #121 by vlko (2012-06-13 09:40:10+00:00)
Title: match only latest order by in query to get count query

this patch will allow you to use order by in subqueries (we have one nasty report query containing this)