Title: WordPress Database Error
Last modified: February 12, 2020

---

# WordPress Database Error

 *  [fn16](https://wordpress.org/support/users/fn16/)
 * (@fn16)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wordpress-database-error-141/)
 * You have an error in your SQL sy ntax; check the manual that corresponds to your
   MariaDB server version for the right syntax to use near ” at line 1 für Abfrage
   SELECT `page_id` FROM wp_statistics_pages WHERE `date` = ‘2020-02-12’ AND `type`
   = ” AND `id` = von require(‘wp-blog-header.php’), wp, WP->main, WP->parse_reques
   t, do_action_ref_array(‘parse_request’), WP_Hook->do_action, WP_Hook->apply_filters,
   rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Serve r->dispatch, WP_Statistics_Rest-
   >hit, WP_Statistics_Hits->Pages, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection_QueryCaching-
   >query, W3TC \_CallUnderlying->query, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection-
   >query, W3TC\DbCache_WpdbNew->default_query” while reading respon se header
 * Wordpress Version: 5.3.2
    WPStatistics Version: 12.6.12

Viewing 1 replies (of 1 total)

 *  [darthyoda6](https://wordpress.org/support/users/darthyoda6/)
 * (@darthyoda6)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/wordpress-database-error-141/#post-12525398)
 * My error log has also been filled with this message. Use to be once in a while,
   but now it’s constant.
 * `WordPress database error. You have an error in your SQL syntax; check the manual
   that corresponds to your MySQL server version for the right syntax to use near''
   at line 1 for query SELECT`page_id`FROM wp_statistics_pages WHERE`date`= '2020-
   03-09' AND`type`= '' AND`id`= made by require('wp-blog-header.php'), wp, WP->
   main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action,
   WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server-
   >dispatch, WP_Statistics_Rest->hit, WP_Statistics_Hits->Pages`
 * WP Statistics V12.6.12
    Wordpress 5.3.2–en_CA

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [darthyoda6](https://wordpress.org/support/users/darthyoda6/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/wordpress-database-error-141/#post-12525398)
 * Status: not resolved