WordPress database error
-
We have been using the Modern Tribe’s The Events Calendar WordPress plugin for 1-2+ years.
I believe we’re having issues with the event widget we have set up in our header widget area (this is only an assumption and may very well be wrong).
I’m receiving the following error message in the PHP error log (“***” indicates redacted information):
________________________________________________________________________________[07-Dec-2020 17:26:34 UTC] WordPress database error Not unique table/alias: ‘***_postmeta’ for query SELECT SQL_CALC_FOUND_ROWS DISTINCT ***_posts.*, CAST( orderby_event_date_meta.meta_value AS DATETIME ) AS event_date FROM ***_posts LEFT JOIN ***_postmeta ON (***_posts.ID = ***_postmeta.post_id AND ***_postmeta.meta_key = ‘_EventHideFromUpcoming’ ) LEFT JOIN ***_postmeta AS mt1 ON ( ***_posts.ID = mt1.post_id ) LEFT JOIN ***_postmeta ON ***_posts.ID = ***_postmeta.post_id
LEFT JOIN ***_postmeta AS orderby_event_date_meta
ON (
orderby_event_date_meta.post_id = ***_posts.ID
AND orderby_event_date_meta.meta_key = ‘_EventStartDate’
)
WHERE 1=1 AND (
***_postmeta.post_id IS NULL
AND
( mt1.meta_key = ‘_EventEndDate’ AND CAST(mt1.meta_value AS DATETIME) > ‘2020-12-07 12:26:34’ )
) AND ***_posts.post_type = ‘tribe_events’ AND ((***_posts.post_status = ‘publish’)) GROUP BY ***_posts.ID ORDER BY event_date ASC, ***_posts.post_date ASC LIMIT 0, 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/***/woocommerce/archive-product.php’), get_header, locate_template, load_template, require_once(‘/themes/***/header.php’), dynamic_sidebar, WP_Widget->display_callback, Tribe__Events__List_Widget->widget, Tribe__Events__List_Widget->widget_output, tribe_get_events, Tribe__Events__Query::getEvents, WP_Query->get_posts`The page I need help with: [log in to see the link]
The topic ‘WordPress database error’ is closed to new replies.