Title: Database Error wp_term_taxonomy
Last modified: October 6, 2016

---

# Database Error wp_term_taxonomy

 *  [metaeditor](https://wordpress.org/support/users/metaeditor/)
 * (@metaeditor)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/database-error-wp_term_taxonomy/)
 * Some tiny error the Plugin assume that the WP Table have the WP Prefix . If like
   recomendet you use any other prefix the SUM will fail with following error DEBUGG
   ON
 * SELECT Sum(count) FROM wp_term_taxonomy WHERE taxonomy = ‘kbe_taxonomy’ And parent
   = 3145

Viewing 1 replies (of 1 total)

 *  Thread Starter [metaeditor](https://wordpress.org/support/users/metaeditor/)
 * (@metaeditor)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/database-error-wp_term_taxonomy/#post-8258234)
 * Fixed it in the Theme File kbe_knowledgebase.php Just for #MEMO
 * + global $wpdb;
    + $table_term_tax = $wpdb->prefix. ‘term_taxonomy’;
 *  foreach($kbe_terms as $kbe_taxonomy){
    . . . $kbe_count_sum = $wpdb->get_var(“
   SELECT Sum(count) + FROM “.$table_term_tax .” WHERE taxonomy = ‘”.KBE_POST_TAXONOMY.”‘
   And parent = $kbe_term_id” );

Viewing 1 replies (of 1 total)

The topic ‘Database Error wp_term_taxonomy’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-knowledgebase_c56559.svg)
 * [WordPress Knowledge base & Documentation Plugin - WP Knowledgebase](https://wordpress.org/plugins/wp-knowledgebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-knowledgebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-knowledgebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-knowledgebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-knowledgebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-knowledgebase/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [metaeditor](https://wordpress.org/support/users/metaeditor/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/database-error-wp_term_taxonomy/#post-8258234)
 * Status: not resolved