MDL-32107 Activity completion: should use get_enrolled_sql instead of reinventing...