v2.12 (Build: 2018031100)
The log table optimisation code incorrectly included the prefix mdl_. This has now been removed.
A further optimisation to the SQL code was implemented by placing brackets around '(auf.userid = $userid OR a.markingworkflow = 0)'