Title: SQL errors
Last modified: September 1, 2016

---

# SQL errors

 *  Resolved [Daryll Doyle](https://wordpress.org/support/users/enshrined/)
 * (@enshrined)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/sql-errors-7/)
 * I seem to be getting tons of SQL errors when people hit a site. Below is the 
   stack trace as reported by NewRelic. Any ideas what’s causing it?
 * Running Version 6.1.10
 *     ```
       MysqlError: Unknown column 'statusCode' in 'field list'
       in mysql_query called at /home/******/public_html/wp-includes/wp-db.php (1813)
       in wpdb::_do_query called at /home/******/public_html/wp-includes/wp-db.php (1717)
       in wpdb::query called at /home/******/public_html/wp-includes/wp-db.php (1923)
       in wpdb::_insert_replace_helper called at /home/******/public_html/wp-includes/wp-db.php (1844)
       in wpdb::insert called at /home/******/public_html/wp-content/plugins/wordfence/lib/wfDB.php (179)
       in wfModel::insert called at /home/******/public_html/wp-content/plugins/wordfence/lib/wfDB.php (169)
       in wfModel::save called at /home/******/public_html/wp-content/plugins/wordfence/lib/wfLog.php (558)
       in wfLog::logHit called at ? (?)
       ```
   
 * Cheers,
    Daryll
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 1 replies (of 1 total)

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/sql-errors-7/#post-7532963)
 * Hi Daryll,
    If you have access to any database management tool like for example“
   phpMyAdmin”, could you please check this table `wp_wfHits` columns?
 * You can also run this SQL query after selecting your database to search for `
   statusCode` column in the whole database:
 *     ```
       SELECT COLUMN_NAME, TABLE_NAME
       FROM INFORMATION_SCHEMA.COLUMNS
       WHERE COLUMN_NAME LIKE '%statusCode%'
       ```
   
 * Let me know how it goes,
    Thanks.

Viewing 1 replies (of 1 total)

The topic ‘SQL errors’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/sql-errors-7/#post-7532963)
 * Status: resolved