WordPress database error: [Lost connection to MySQL server during query]
SELECT DISTINCT wp_posts.*, MIN(wp_postmeta.meta_value) as EventStartDate, MIN(tribe_event_end_date.meta_value) as EventEndDate FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS _tribe_events_meta ON wp_posts.ID = _tribe_events_meta.post_id AND _tribe_events_meta.meta_key = '_EventStartDate' LEFT JOIN wp_postmeta as tribe_event_end_date ON ( wp_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = '_EventEndDate' ) WHERE 1=1 AND ( wp_postmeta.meta_key = '_EventStartDate' ) AND wp_posts.post_type = 'tribe_events' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'completed' OR wp_posts.post_status = 'denied' OR wp_posts.post_status = 'not-completed' OR wp_posts.post_status = 'pending-payment' OR wp_posts.post_status = 'refunded' OR wp_posts.post_status = 'tribe-ea-success' OR wp_posts.post_status = 'tribe-ea-failed' OR wp_posts.post_status = 'tribe-ea-schedule' OR wp_posts.post_status = 'tribe-ea-pending' OR wp_posts.post_status = 'tribe-ea-draft' OR wp_posts.post_status = 'complete' OR wp_posts.post_status = 'paid' OR wp_posts.post_status = 'confirmed' OR wp_posts.post_status = 'unpaid' OR wp_posts.post_status = 'pending-confirmation' OR wp_posts.post_status = 'cancelled') OR (1=1 AND wp_posts.post_status='publish' AND wp_posts.post_type='tribe_events' AND YEAR(_tribe_events_meta.meta_value)=0) AND ((wp_postmeta.meta_value >= '2020-08-06 00:00:00' AND wp_postmeta.meta_value <= '2020-08-06 23:59:59') OR (tribe_event_end_date.meta_value >= '2020-08-06 00:00:00' AND wp_postmeta.meta_value <= '2020-08-06 23:59:59' ) OR (wp_postmeta.meta_value < '2020-08-06 00:00:00' AND tribe_event_end_date.meta_value >= '2020-08-06 23:59:59' )) GROUP BY wp_posts.ID ORDER BY EventStartDate ASC, wp_posts.post_date ASC

Events Archive - Sk8 Therapy