Title: SQL error on front side
Last modified: April 14, 2021

---

# SQL error on front side

 *  Resolved [Thomas Dubois](https://wordpress.org/support/users/thomasfromwood/)
 * (@thomasfromwood)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sql-error-on-front-side/)
 * Hello there. Just to know if it’s a bug. I’m having this error with 2.5.4 in 
   debug.log when the plugin is activated :
 *     ```
       Unknown column 'term_order' in 'field list' pour la requête 
                           SELECT count(*) as cnt, max(term_order) as max, min(term_order) as min
                           FROM wp_terms AS terms
                           INNER JOIN wp_term_taxonomy AS term_taxonomy ON ( terms.term_id = term_taxonomy.term_id )
                           WHERE term_taxonomy.taxonomy = 'xxx'
                        faite par require_once('wp-admin/network/admin.php'), require_once('wp-admin/admin.php'), do_action('admin_init'), WP_Hook->do_action, WP_Hook->apply_filters, SCPO_Engine->refresh
       ```
   
 * Then get_terms on front side is NULL (working before). The only solution was 
   to desactivate the plugin and all is ok.
 * Thanks for your help !
    -  This topic was modified 5 years, 1 month ago by [Thomas Dubois](https://wordpress.org/support/users/thomasfromwood/).
    -  This topic was modified 5 years, 1 month ago by [Thomas Dubois](https://wordpress.org/support/users/thomasfromwood/).

Viewing 1 replies (of 1 total)

 *  [Miha](https://wordpress.org/support/users/mplusb/)
 * (@mplusb)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sql-error-on-front-side/#post-14321975)
 * Hi [@thomasfromwood](https://wordpress.org/support/users/thomasfromwood/),
 * Please go to your database and in the wp_options table search for option key 
   scporder_install and remove it.
    Then reactivate the plugin and it will fix the
   issue.
 * Warmly,
    Mihaela

Viewing 1 replies (of 1 total)

The topic ‘SQL error on front side’ is closed to new replies.

 * ![](https://ps.w.org/simple-custom-post-order/assets/icon-256x256.jpg?rev=2969435)
 * [Simple Custom Post Order](https://wordpress.org/plugins/simple-custom-post-order/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-custom-post-order/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-custom-post-order/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-custom-post-order/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-custom-post-order/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-custom-post-order/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Miha](https://wordpress.org/support/users/mplusb/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/sql-error-on-front-side/#post-14321975)
 * Status: resolved