Title: Missing $wpdb in password reset
Last modified: October 13, 2016

---

# Missing $wpdb in password reset

 *  Resolved [Kipperlenny](https://wordpress.org/support/users/kipperlenny/)
 * (@kipperlenny)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/missing-wpdb-in-password-reset/)
 * Hi, in your file wp-email-users.php on line 1173 you are using `$wpdb->query`
   without a `global $wpdb;` in the function my_password_reset.
 * Please add this or our users get the error:
 * > Call to a member function query on null

Viewing 1 replies (of 1 total)

 *  Plugin Author [Techspawn](https://wordpress.org/support/users/techspawn1/)
 * (@techspawn1)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/missing-wpdb-in-password-reset/#post-8290900)
 * [@kipperlenny](https://wordpress.org/support/users/kipperlenny/) Thanks for pointing
   it out.
 * We will add that and release update with fix.
 * Thanks again.

Viewing 1 replies (of 1 total)

The topic ‘Missing $wpdb in password reset’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-email-users_59bcfd.svg)
 * [WP Email Users](https://wordpress.org/plugins/wp-email-users/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-email-users/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Techspawn](https://wordpress.org/support/users/techspawn1/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/missing-wpdb-in-password-reset/#post-8290900)
 * Status: resolved