Resolved
Reported for: Toolset Types 3.0.4
Resolved in: 3.1
When you query related posts using the toolset_get_related_posts()
function by meta key/value argument, the API throws the following WordPress database error:
[Unknown column 'wp_postmeta_1' in 'where clause']
This issue will be resolved in the next Types release.
In the meantime, you can download this file, unzip it and replace the postmeta.php file found in the ..vendor/toolset/toolset-common/inc/m2m/association/query/condition/ folder.