WordPress database error: [Not unique table/alias: 'wp_postmeta']
SELECT DISTINCT wp_posts.ID, MIN( orderby_event_date_meta.meta_value ) AS event_date FROM wp_posts LEFT JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = '_EventHideFromUpcoming' ) LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id LEFT JOIN wp_postmeta tribe_start_date_utc ON ( wp_posts.ID = tribe_start_date_utc.post_id AND tribe_start_date_utc.meta_key = '_EventStartDate' ) LEFT JOIN wp_postmeta tribe_end_date_utc ON ( wp_posts.ID = tribe_end_date_utc.post_id AND tribe_end_date_utc.meta_key = '_EventEndDate' ) LEFT JOIN wp_postmeta AS orderby_event_date_meta ON ( orderby_event_date_meta.post_id = wp_posts.ID AND orderby_event_date_meta.meta_key = '_EventStartDate' ) WHERE 1=1 AND ( wp_postmeta.post_id IS NULL ) AND wp_posts.post_type = 'tribe_events' AND ((wp_posts.post_status = 'publish')) AND (( TIMESTAMPDIFF ( SECOND, tribe_start_date_utc.meta_value, '2020-06-25 23:59:59' ) >= 1 AND TIMESTAMPDIFF ( SECOND, '2020-06-25 00:00:00', tribe_end_date_utc.meta_value ) >= 1 )) GROUP BY wp_posts.ID ORDER BY event_date ASC, wp_posts.post_date ASC

WordPress database error: [Not unique table/alias: 'wp_postmeta']
SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.ID, MIN( orderby_event_date_meta.meta_value ) AS event_date FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id LEFT JOIN wp_postmeta AS orderby_event_date_meta ON ( orderby_event_date_meta.post_id = wp_posts.ID AND orderby_event_date_meta.meta_key = '_EventStartDate' ) WHERE 1=1 AND ( ( wp_postmeta.meta_key = '_EventStartDate' AND CAST(wp_postmeta.meta_value AS DATETIME) > '2020-06-25 00:00:00' ) ) AND wp_posts.post_type = 'tribe_events' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY event_date ASC, wp_posts.post_date ASC LIMIT 0, 1