MDL-32738 quiz overdue handling cron: appease MySQL.
MDL-32738 quiz overdue handling cron: appease MySQL.

Thanks to sam marshall for giving my the idea of using a subquery to
make the SQL work on all DBs.

dilawar/moodle