Title: WP DB error: wp_terms doesen&#8217;t exist
Last modified: November 6, 2020

---

# WP DB error: wp_terms doesen’t exist

 *  [Koli14](https://wordpress.org/support/users/koli14/)
 * (@koli14)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-db-error-wp_terms-doesent-exist/)
 * Hey, the plugin throws an error for me:
 * > WordPress database error: [Table ‘myDB.wp_terms’ doesn’t exist]
   >  SELECT object_id,
   > t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id
   > = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id =
   > tt.term_taxonomy_id WHERE tt.taxonomy IN (‘category’) AND tr.object_id IN (
   > 0)
 * I do have table prefix, so my terms table is `nx_terms` instead of `wp_terms`.
   
   If I modify the `/easyindex/lib/EasyIndex.php` on line 1043-1044 to:
 *     ```
       $q = "SELECT object_id, t.*, tt.* FROM MYDBPREFIX_terms AS t INNER JOIN MYDBPREFIX_term_taxonomy AS tt ON tt.term_id = t.term_id ";
       $q .= "INNER JOIN MYDBPREFIX_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id ";
       ```
   
 * And I do the same modification in `EasyIndexIndex.php` line 1067-1068, then the
   error disappears.
    Cheers!
    -  This topic was modified 5 years, 7 months ago by [Koli14](https://wordpress.org/support/users/koli14/).
    -  This topic was modified 5 years, 7 months ago by [Koli14](https://wordpress.org/support/users/koli14/).
    -  This topic was modified 5 years, 7 months ago by [Koli14](https://wordpress.org/support/users/koli14/).

Viewing 1 replies (of 1 total)

 *  [ericleesmith](https://wordpress.org/support/users/ericleesmith/)
 * (@ericleesmith)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wp-db-error-wp_terms-doesent-exist/#post-13669564)
 * I am getting the same error and my site has slowed to a crawl. My ISP sent this
   message to me:
 * That error is saying that the database table wp_terms doesn’t exist. The problem
   with that is the database doesn’t use that table, it uses wp_7hxc6uni19_terms.
   There seems to be a plugin that is poorly coded and it is assuming the database
   prefix.
 * I’m not sure what to do next. This is a serious problem for my site because I
   use EasyIndex in many places.

Viewing 1 replies (of 1 total)

The topic ‘WP DB error: wp_terms doesen’t exist’ is closed to new replies.

 * ![](https://ps.w.org/easyindex/assets/icon-128x128.png?rev=1246313)
 * [EasyIndex](https://wordpress.org/plugins/easyindex/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easyindex/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easyindex/)
 * [Active Topics](https://wordpress.org/support/plugin/easyindex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easyindex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easyindex/reviews/)

## Tags

 * [wp_terms](https://wordpress.org/support/topic-tag/wp_terms/)

 * 1 reply
 * 2 participants
 * Last reply from: [ericleesmith](https://wordpress.org/support/users/ericleesmith/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/wp-db-error-wp_terms-doesent-exist/#post-13669564)
 * Status: not a support question