WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 13]
SELECT SQL_CALC_FOUND_ROWS DISTINCT ut0z_posts.ID, post_parent, ut0z_postmeta.meta_value FROM ut0z_posts LEFT JOIN ut0z_postmeta ON ( ut0z_posts.ID = ut0z_postmeta.post_id ) LEFT JOIN ut0z_postmeta AS mt1 ON (ut0z_posts.ID = mt1.post_id AND mt1.meta_key = '_EventHideFromUpcoming' ) LEFT JOIN ut0z_postmeta AS mt2 ON ( ut0z_posts.ID = mt2.post_id ) LEFT JOIN ut0z_postmeta AS mt3 ON ( ut0z_posts.ID = mt3.post_id ) LEFT JOIN ut0z_postmeta AS mt4 ON ( ut0z_posts.ID = mt4.post_id ) WHERE 1=1 AND ut0z_posts.ID NOT IN (548,543) AND ( ut0z_postmeta.meta_key = '_EventStartDateUTC' AND ( mt1.post_id IS NULL AND mt2.meta_key = '_EventStartDate' AND ( mt3.meta_key = '_EventEndDate' AND CAST(mt3.meta_value AS DATETIME) > '2019-07-23 06:20:00' ) AND ( mt4.meta_key = '_EventStartDate' AND CAST(mt4.meta_value AS DATETIME) >= '2019-07-23 06:20:00' ) ) ) AND ut0z_posts.post_type = 'tribe_events' AND ((ut0z_posts.post_status = 'publish')) GROUP BY ut0z_posts.ID ORDER BY ut0z_postmeta.meta_value ASC LIMIT 0, -1

BEGIN:VCALENDAR VERSION:2.0 PRODID:-//PositiveSpirit - ECPv4.9.2//NONSGML v1.0//EN CALSCALE:GREGORIAN METHOD:PUBLISH X-WR-CALNAME:PositiveSpirit X-ORIGINAL-URL:https://positivespirit.co.uk X-WR-CALDESC:Events for PositiveSpirit END:VCALENDAR