I\'m running this query
SELECT events.*, venues.*, SUM(events.eventCAPACITY) AS capacity, SUM(CASE WHEN bookings.bookingAMOUNT is NULL THEN 0 ELSE boo