WordPress-Database-Error
Hi,
i’ve install the Plugin and set the options for my custom post type. If i’ll filter by one specific column, only the second click on filter works. By the first one, i’ve got the following error…
WordPress-Datenbank-Fehler Not unique table/alias: 'wp_postmeta' für Abfrage SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE 1=1 AND (
( wp_postmeta.meta_key = 'country' AND wp_postmeta.meta_value != '' )
AND
( mt1.meta_key = 'anrede' AND mt1.meta_value = 'Frau' )
) AND wp_posts.post_type = 'licad_form' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY CAST(wp_postmeta.meta_value AS CHAR) DESC LIMIT 0, 20 von WP_Posts_List_Table->prepare_items, wp_edit_posts_query, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, QM_DB->query
Do you have an idea?
best regards,
Florian
You must be logged in to reply to this topic.