Can't log-in while upgrading from 1.9 to 1.10?

I tried to upgrade Elgg from 1.9.8 to 1.10.5. I followed these steps carefully: http://learn.elgg.org/en/stable/admin/upgrading.html

However when I go to mysite.com/upgrade.php and Elgg says "You must be logged in to view the requested page" and I try to log-in, I get a strange error message:

Unknown column 'password_hash' in 'field list'

QUERY: UPDATE elgg_users_entity
SET name='Administrator', username='Administrator', password='', salt='',
password_hash='some long string', email='xxx@xxx.xxx', language='en'
WHERE guid = 37

 Any idea?