MDL-42957 quiz statistics : Hardcoded sql LIMIT clause
Merge branch 'MDL-42957-26' into MDL-42957-master
MDL-42957 (2) quiz statistics : Hardcoded sql LIMIT clause

Fixing some typos and adding some tests.