Title: Database Table Does Not Exist
Last modified: August 4, 2021

---

# Database Table Does Not Exist

 *  Resolved [Nate Walker](https://wordpress.org/support/users/1791delegates/)
 * (@1791delegates)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/)
 * Dear Pluginize Colleagues,
 * The Query Monitor plugin is reporting that the buddy-boss-platform error message,“
   Table ‘dbg5b2n636dpbv.vcc_13_usermeta’ doesn’t exist”
 *     ```
       SELECT user_id 
   
       FROM vcc_13_usermeta 
   
       WHERE meta_key = '_bprwg_is_moderated' 
   
       AND meta_value = 'true'
   
       do_action_ref_array('bp_pre_user_query_construct') wp-includes/plugin.php:518 BP_User_Query->__construct() wp-content/plugins/buddyboss-platform/bp-core/classes/class-bp-user-query.php:190 bp_core_get_users() wp-content/plugins/buddyboss-platform/bp-members/bp-members-functions.php:145 BP_Core_Members_Template->__construct() wp-content/plugins/buddyboss-platform/bp-members/classes/class-bp-core-members-template.php:157 bp_has_members() wp-content/plugins/buddyboss-platform/bp-members/bp-members-template.php:449 BP_Core_Recently_Active_Widget->widget() wp-content/plugins/buddyboss-platform/bp-members/classes/class-bp-core-recently-active-widget.php:86 WP_Widget->display_callback() wp-includes/class-wp-widget.php:393 dynamic_sidebar('activity_right') wp-includes/widgets.php:831 load_template('wp-content/themes/buddyboss-theme-child/sidebar-buddypress.php') wp-includes/template.php:770 locate_template() wp-includes/template.php:716 get_sidebar('buddypress') wp-includes/general-template.php:136
       ```
   
 * I brought this to the attention of BuddyBoss Support and they said, “We debug
   the issue and found the issue in the `BP Registration Options` plugin. Tell the
   client to disable this plugin and the error will be gone.””
 * We value the BP Registration Options plugin and would like to continue using 
   it.
 * Can you please fix the database error that we are receiving? I can provide login
   information through secure means.
 * Cheers,
    Nate

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14732712)
 * The closest I can find for this issue is this specific line:
 * [https://github.com/WebDevStudios/BuddyPress-Registration-Options/blob/master/includes/core.php#L165](https://github.com/WebDevStudios/BuddyPress-Registration-Options/blob/master/includes/core.php#L165)
 * However it doesn’t quite make sense because even in Mulitsite, I believe it should
   resolve itself to `vcc_usermeta` which should be your user meta table.
 * Are you comfortable at all with editing a file/line to help test a fix?
 *  Thread Starter [Nate Walker](https://wordpress.org/support/users/1791delegates/)
 * (@1791delegates)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14734070)
 * Hi Michael,
 * Yes, thank you. We’re comfortable with editing a file/line. Just let us know 
   what to test.
 * Thanks!
    Nate
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14739362)
 * {$wpdb->usermeta}
 * I’m curious if this line:
 *     ```
       $sql = "SELECT user_id FROM " . $wpdb->prefix . "usermeta WHERE meta_key = '_bprwg_is_moderated' AND meta_value = %s";
       ```
   
 * should be changed to the following, and if that removes the errors you’re seeing.
 *     ```
       $sql = "SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = '_bprwg_is_moderated' AND meta_value = %s";
       ```
   
 * Line 165 from /includes/core.php inside our plugin.
 *  Thread Starter [Nate Walker](https://wordpress.org/support/users/1791delegates/)
 * (@1791delegates)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14748922)
 * Hi Michael,
 * I’m pleased to report that your suggestion worked! Thank you for your help and
   expertise.
 * Cheers,
    Nate
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14749268)
 * Will get this filed as an issue so that we don’t have others potentially running
   into this. Thanks for the confirmation.
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14749289)
 * Filed over at [https://github.com/WebDevStudios/BuddyPress-Registration-Options/issues/193](https://github.com/WebDevStudios/BuddyPress-Registration-Options/issues/193)
 *  Thread Starter [Nate Walker](https://wordpress.org/support/users/1791delegates/)
 * (@1791delegates)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14749506)
 * Great work! Thanks again.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Database Table Does Not Exist’ is closed to new replies.

 * ![](https://ps.w.org/bp-registration-options/assets/icon-256x256.png?rev=2882040)
 * [Registration Options for BuddyPress](https://wordpress.org/plugins/bp-registration-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-registration-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-registration-options/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-registration-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-registration-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-registration-options/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Nate Walker](https://wordpress.org/support/users/1791delegates/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/database-table-does-not-exist-2/#post-14749506)
 * Status: resolved