Guessing from the top of my head the column 'user_login_attempts' doesn't exists.
-Make sure you've connected the username to the database.
-Make sure you're using correct database info
-Make sure you have imported all the correct database tables/columns.
Edit -Make sure your username/database have the correct permissions (SELECT enabled)

Sorry I can't be much help... :-\