MDL-49216 mod_forum: Move subquery to outer component
MDL-49216 mod_forum: Move subquery to outer component

It is not possible to order sub-query results with some RDBMs, and the
subquery is not necessary anyway.

dilawar/moodle