Title: Frequent error DB table does not exist
Last modified: March 13, 2020

---

# Frequent error DB table does not exist

 *  Resolved [Joe](https://wordpress.org/support/users/webworksjoe/)
 * (@webworksjoe)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/frequent-error-db-table-does-not-exist/)
 * Hi thanks for your plugin and hard work.
 * We’re seeing frequent errors stating:
 * WordPress database error Table ‘_DB\_NAME_.mp_options’ doesn’t exist for query
   DELETE FROM
    mp_options WHERE (option_name LIKE ‘%_rfqtk_wp_session_expires_%’
   OR option_name LIKE CONCAT(‘_rfqtk_wp_session_’, replace(option_name,’_rfqtk_wp_session_expires_’,”)))
 * Seems this is coming from your delete_old_sessions function around line 100 in
   class-wp-session-utils.php.
 *     ```
       	public static function delete_old_sessions( $limit = RFQTK_WP_SESSION_CLEAN_LIMIT ) {
   
       ...
   
                   $sql= "DELETE FROM 
               mp_options WHERE (option_name LIKE '%_rfqtk_wp_session_expires_%'  OR option_name LIKE  CONCAT('_rfqtk_wp_session_', replace(option_name,'_rfqtk_wp_session_expires_', ''))) 
               and option_value <=%d    LIMIT %d";
   
       ...
       }
       ```
   
 * Thanks for taking a look.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Neah Plugins](https://wordpress.org/support/users/gplsaver/)
 * (@gplsaver)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/frequent-error-db-table-does-not-exist/#post-12542260)
 * Hi
    Thanks for reporting fixed in 1.8.168

Viewing 1 replies (of 1 total)

The topic ‘Frequent error DB table does not exist’ is closed to new replies.

 * ![](https://ps.w.org/woo-rfq-for-woocommerce/assets/icon-128x128.png?rev=2024323)
 * [NP Quote Request for WooCommerce](https://wordpress.org/plugins/woo-rfq-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-rfq-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Neah Plugins](https://wordpress.org/support/users/gplsaver/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/frequent-error-db-table-does-not-exist/#post-12542260)
 * Status: resolved