Title: An error in your SQL syntax
Last modified: June 12, 2020

---

# An error in your SQL syntax

 *  [Selim Ahmed](https://wordpress.org/support/users/aronno1920/)
 * (@aronno1920)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/an-error-in-your-sql-syntax/)
 * WordPress database error You have an error in your SQL syntax; check the manual
   that corresponds to your MariaDB server version for the right syntax to use near”
   at line 1 for query SELECT `page_id` FROM wpfn_statistics_pages WHERE `date` 
   = ‘2020-06-12’ 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
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fan-error-in-your-sql-syntax%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘An error in your SQL syntax’ 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/)

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [Selim Ahmed](https://wordpress.org/support/users/aronno1920/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/an-error-in-your-sql-syntax/)
 * Status: not resolved