Changed User::model()->find() to raw SQL to avoid mysterious error on migration