How to do a WP_User_Query in WordPress 3.0.1?

You can use WP_User_Query class with 3.1 and higher, there was WP_User_Search class which is deprecated since 3.1, also see this article from Steve Taylor you may find it helpful – http://sltaylor.co.uk/blog/get-wordpress-users-by-role/

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)