Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of norzechowicz:
Unfortunately fix from my last commit it not enough to handle more complicated queries.
This change should fix points 2 and 3 from this list but it also removes adding TOP statement if $offset is not set.
I know it looks realy messy but I can't figure out any other solution to handel queries with subqueries and ordering (such thing is generated after using Doctrine Paginator and ordering).
Comment created by @beberlei:
A related Github Pull-Request [GH-252] was closed
Issue was closed with resolution "Fixed"