Title: SQL error message &#8211; WordPress database error
Last modified: August 18, 2016

---

# SQL error message – WordPress database error

 *  [affiliatewins](https://wordpress.org/support/users/affiliatewins/)
 * (@affiliatewins)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/sql-error-message-wordpress-database-error/)
 * Hello!
 * I am getting the following message on my WordPress blog that I just uploaded 
   to my host:
 * ” 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]
    SELECT COUNT(DISTINCT ID) FROM “
 * I can’t find any posts about this, so I am asking for help.
 * What do I do now to get rid of this error message?
 * In advance, many thanks.

Viewing 1 replies (of 1 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/sql-error-message-wordpress-database-error/#post-489188)
 * Do you have a link?
    What is the query causing this error? Or where does this
   error appear? Please help us help you with more info.

Viewing 1 replies (of 1 total)

The topic ‘SQL error message – WordPress database error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Samuel B](https://wordpress.org/support/users/samboll/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/sql-error-message-wordpress-database-error/#post-489188)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
