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 wp_posts.ID, post_parent, wp_postmeta.meta_value FROM wp_posts LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON (wp_posts.ID = mt1.post_id AND mt1.meta_key = '_EventHideFromUpcoming' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id ) WHERE 1=1 AND ( wp_postmeta.meta_key = '_EventStartDateUTC' AND ( mt1.post_id IS NULL AND mt2.meta_key = '_EventStartDateUTC' AND ( mt3.meta_key = '_EventEndDateUTC' AND CAST(mt3.meta_value AS DATETIME) > '2019-10-15 01:01:00' ) AND ( mt4.meta_key = '_EventStartDateUTC' AND CAST(mt4.meta_value AS DATETIME) >= '2019-10-15 01:01:08' ) ) ) AND wp_posts.post_type = 'tribe_events' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value ASC LIMIT 0, -1


Warning: Cannot modify header information - headers already sent by (output started at /home/josayl/midlandbhi.org/wp-includes/wp-db.php:1479) in /home/josayl/midlandbhi.org/wp-content/plugins/the-events-calendar/src/Tribe/iCal.php on line 425

Warning: Cannot modify header information - headers already sent by (output started at /home/josayl/midlandbhi.org/wp-includes/wp-db.php:1479) in /home/josayl/midlandbhi.org/wp-content/plugins/the-events-calendar/src/Tribe/iCal.php on line 426

Warning: Cannot modify header information - headers already sent by (output started at /home/josayl/midlandbhi.org/wp-includes/wp-db.php:1479) in /home/josayl/midlandbhi.org/wp-content/plugins/the-events-calendar/src/Tribe/iCal.php on line 427
BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Midland BHI - ECPv4.9.1.1//NONSGML v1.0//EN CALSCALE:GREGORIAN METHOD:PUBLISH X-WR-CALNAME:Midland BHI X-ORIGINAL-URL:https://midlandbhi.org X-WR-CALDESC:Events for Midland BHI END:VCALENDAR