WordPress database error: [Lost connection to MySQL server during query]
SELECT DISTINCT wp_posts.ID, CAST( orderby_event_date_utc_meta.meta_value AS DATETIME ) AS event_date_utc, CAST( orderby_event_duration_meta.meta_value AS DECIMAL ) AS event_duration 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 AS mt1 ON ( wp_posts.ID = mt1.post_id ) JOIN wp_postmeta in_series_meta ON wp_posts.ID = in_series_meta.post_id LEFT JOIN wp_postmeta AS orderby_event_date_utc_meta ON ( orderby_event_date_utc_meta.post_id = wp_posts.ID AND orderby_event_date_utc_meta.meta_key = '_EventStartDateUTC' ) LEFT JOIN wp_postmeta AS orderby_event_duration_meta ON ( orderby_event_duration_meta.post_id = wp_posts.ID AND orderby_event_duration_meta.meta_key = '_EventDuration' ) WHERE 1=1 AND ( wp_postmeta.post_id IS NULL AND ( mt1.meta_key = '_EventEndDateUTC' AND CAST(mt1.meta_value AS DATETIME) > '2021-01-26 12:59:19' ) ) AND wp_posts.post_type = 'tribe_events' AND ((wp_posts.post_status = 'publish')) AND (wp_posts.post_parent = 971 OR ( wp_posts.ID = 971 AND in_series_meta.meta_key = '_EventRecurrence' AND in_series_meta.meta_value IS NOT NULL )) GROUP BY wp_posts.ID ORDER BY event_date_utc ASC, event_duration ASC, wp_posts.post_date ASC LIMIT 0, 13