Fixing query for course participants finder