Fixing incorrect field.
Merge pull request #508 from nrporter/fix-moodle-user-exist-sql

Sub out an incorrect database field to repair the user exists check.