Added test for from (subquery) with order by, as the ORM would generate it