Title: WordPress database error: [You have an error in your SQL syntax.]
Last modified: August 19, 2016

---

# WordPress database error: [You have an error in your SQL syntax.]

 *  [molly](https://wordpress.org/support/users/shejumps/)
 * (@shejumps)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/wordpress-database-error-you-have-an-error-in-your-sql-syntax-2/)
 * When we try and post a new blog page this is what we get!! Please help!! We have
   not upgraded to the new version of WP i don’t think and to my knowledge have 
   had no other issues.
 * —
 * WordPress database error: [Access denied for user: ‘dbo177853119@%’ to database‘
   db177853119’]
    INSERT IGNORE INTO wp_posts (post_author, post_date, post_date_gmt,
   post_content, post_content_filtered, post_title, post_excerpt, post_status, comment_status,
   ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt,
   post_parent, menu_order, post_mime_type) VALUES (‘1’, ”, ”, ‘lsjfwoeofawjoi’,”,”,”,‘
   draft’, ‘open’, ‘open’, ”, ”, ”, ”, ”, ”, ‘0’, ‘0’, ”)
 * 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 3]
    SELECT category_id FROM wp_post2cat WHERE post_id =
 * 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‘
   5)’ at line 2]
    INSERT INTO wp_post2cat (post_id, category_id) VALUES (, 5)
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/13/d174409399/htdocs/wordpress/wp-includes/wp-db.php:104) in /homepages/
   13/d174409399/htdocs/wordpress/wp-includes/pluggable-functions.php on line 272

The topic ‘WordPress database error: [You have an error in your SQL syntax.]’ is
closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [molly](https://wordpress.org/support/users/shejumps/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/wordpress-database-error-you-have-an-error-in-your-sql-syntax-2/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
