FIX invalid master user sql query.