#317 Use $wpdb->postmeta and $wpdb->usermeta