Git commits in Moodle 3.11.x by Marty Gilbert

commit e4fabe4ae8d572ff961435acc078ed163ab56ab6
Author: Marty Gilbert <martygilbert@gmail.com>
Date:   Sat, 20 Jun 2020 02:57:31 +0800
Tag:    v3.11.0-beta

MDL-69102 badge: Fixes broken WHERE clause