Title: db error  at custom fields
Last modified: December 28, 2016

---

# db error at custom fields

 *  [rayne](https://wordpress.org/support/users/rayne/)
 * (@rayne)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/db-error-at-custom-fields/)
 * I’m getting this error on the create new post page after upgrading to the beta.(
   latest nightly as of 5/3/04):
    `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 'ORDER BY meta_key,meta_id' at line 4] SELECT meta_key,
   meta_value, meta_id, post_id FROM wp_postmeta WHERE post_id = ORDER BY meta_key,
   meta_id This error is showing up in the custom fields box at the bottom of the
   screen. Yes, I did run the upgrade script. How do I correct this error? Oh yeah,
   this error doesn’t show up when I am editing a post. Only when creating new post.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [l1wulf](https://wordpress.org/support/users/l1wulf/)
 * (@l1wulf)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/db-error-at-custom-fields/#post-48546)
 * I am getting the same error. This upgrade also seems to have been broken the 
   Waypath hack I had managed to get working :/, or maybe some other coincidence
   broke it. Guess I’ll wait for it to become a plug-in.
 *  [atog](https://wordpress.org/support/users/atog/)
 * (@atog)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/db-error-at-custom-fields/#post-48853)
 * Yep, me too. Seems like it’s a general problem then. Maybe a new nightly will
   solve it?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘db error at custom fields’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [atog](https://wordpress.org/support/users/atog/)
 * Last activity: [22 years, 1 month ago](https://wordpress.org/support/topic/db-error-at-custom-fields/#post-48853)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
