Title: WordPress database error Unknown column &#039;meta1.meta_key&#039;
Last modified: August 21, 2016

---

# WordPress database error Unknown column 'meta1.meta_key'

 *  Resolved [AlbertJ3](https://wordpress.org/support/users/albertj3/)
 * (@albertj3)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-meta1meta_key/)
 * I seem to be getting this error when ever an attempt is made to find custom field
   data. Everything works correctly for post data but not for searches on custom
   fields.
    This function did work at one point but apparently something in wp or
   in this plugin was changed. Any suggestions?
 * [http://wordpress.org/extend/plugins/wp-custom-fields-search/](http://wordpress.org/extend/plugins/wp-custom-fields-search/)

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

 *  Thread Starter [AlbertJ3](https://wordpress.org/support/users/albertj3/)
 * (@albertj3)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-meta1meta_key/#post-3858988)
 * It turns out that the plugin was altered in versions 0.3.18 and 0.3.19 in such
   a way as to cause a database error on custom field searches.
    When I reverted
   back to 0.3.4, custom field search worked perfectly for the wp-custom-search 
   plugin.
 *  Plugin Author [don benjamin](https://wordpress.org/support/users/dondon-benjamincouk/)
 * (@dondon-benjamincouk)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-meta1meta_key/#post-3859037)
 * Hi, Sorry, bit of a serious oversight on my part there. Please check version 
   0.3.20 . This should hopefully correct the issue.
 * Thanks,
    Don
 *  Plugin Author [don benjamin](https://wordpress.org/support/users/dondon-benjamincouk/)
 * (@dondon-benjamincouk)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-meta1meta_key/#post-3859039)
 * Also thanks for locating the error message, would have taken a lot longer to 
   fix without you. There are at least two other people on this forum with the same
   problem (and probably many more that haven’t spoken up).
 * Thanks,
    Don
 *  Thread Starter [AlbertJ3](https://wordpress.org/support/users/albertj3/)
 * (@albertj3)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-meta1meta_key/#post-3859093)
 * Thank you for a very useful plugin.
    I’m happy to contribute to the community.
 *  Thread Starter [AlbertJ3](https://wordpress.org/support/users/albertj3/)
 * (@albertj3)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-meta1meta_key/#post-3859094)
 * I just tested your new version and it works correctly.
    Thanks again

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

The topic ‘WordPress database error Unknown column 'meta1.meta_key'’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-fields-search_ffffff.svg)
 * [WP Custom Fields Search](https://wordpress.org/plugins/wp-custom-fields-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-fields-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-fields-search/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-fields-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-fields-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-fields-search/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [AlbertJ3](https://wordpress.org/support/users/albertj3/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-meta1meta_key/#post-3859094)
 * Status: resolved