You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using filtering no results are shown with WPML active.
Query Monitor give the following DB Query
Not unique table/alias: 'test_postmeta' Query-> SELECT DISTINCT test_posts.* FROM test_posts INNER JOIN test_postmeta ON ( test_posts.ID = test_postmeta.post_id ) LEFT JOIN test_postmeta ON test_posts.ID = test_postmeta.post_id JOIN test_icl_translations t ON test_posts.ID = t.element_id AND t.element_type = CONCAT('post_', test_posts.post_type) WHERE 1=1 AND ( ( ( ( test_postmeta.meta_key = 'estate_property_price' AND CAST(test_postmeta.meta_value AS SIGNED) >= '60123456' ) ) ) ) AND test_posts.post_type = 'property' AND (test_posts.post_status = 'publish' OR test_posts.post_status = 'archive' OR test_posts.post_status = 'acf-disabled' OR test_posts.post_status = 'future' OR test_posts.post_status = 'draft' OR test_posts.post_status = 'pending' OR test_posts.post_status = 'private') AND ( ( t.language_code = 'pt-pt' AND test_posts.post_type IN ('post','page','acf-field-group','acf-field','property','testimonial' ) ) OR test_posts.post_type NOT IN ('post','page','acf-field-group','acf-field','property','testimonial' ) ) GROUP BY test_posts.ID ORDER BY test_posts.post_date DESC WP_Query->get_posts()
Helpscout ticket #2751
After using filtering no results are shown with WPML active.
Query Monitor give the following DB Query
Not unique table/alias: 'test_postmeta' Query->
SELECT DISTINCT test_posts.* FROM test_posts INNER JOIN test_postmeta ON ( test_posts.ID = test_postmeta.post_id ) LEFT JOIN test_postmeta ON test_posts.ID = test_postmeta.post_id JOIN test_icl_translations t ON test_posts.ID = t.element_id AND t.element_type = CONCAT('post_', test_posts.post_type) WHERE 1=1 AND ( ( ( ( test_postmeta.meta_key = 'estate_property_price' AND CAST(test_postmeta.meta_value AS SIGNED) >= '60123456' ) ) ) ) AND test_posts.post_type = 'property' AND (test_posts.post_status = 'publish' OR test_posts.post_status = 'archive' OR test_posts.post_status = 'acf-disabled' OR test_posts.post_status = 'future' OR test_posts.post_status = 'draft' OR test_posts.post_status = 'pending' OR test_posts.post_status = 'private') AND ( ( t.language_code = 'pt-pt' AND test_posts.post_type IN ('post','page','acf-field-group','acf-field','property','testimonial' ) ) OR test_posts.post_type NOT IN ('post','page','acf-field-group','acf-field','property','testimonial' ) ) GROUP BY test_posts.ID ORDER BY test_posts.post_date DESC WP_Query->get_posts()
File
wp-includes/query.php:3613 WP_Query->query() wp-includes/query.php:4006 WP->query_posts() wp-includes/class-wp.php:608 WP->main() wp-includes/class-wp.php:726 wp() wp-includes/functions.php:952 wp_edit_posts_query() wp-admin/includes/post.php:1070 WP_Posts_List_Table->prepare_items() wp-admin/includes/class-wp-posts-list-table.php:142 Core Not unique table/alias: 'test_postmeta'
The text was updated successfully, but these errors were encountered: