I have a problem here, and I\'m hoping there is an easy solution. I\'ll try to make this as simple as possible:
Previous answer is nearly correct. You just need to make distinct work well in case identical revenues. You can fix this really simple if your id has numeric type:
SELECT
COUNT(*) AS ticketsCount,
SUM(DISTINCT attendees.id + attendees.revenue) - SUM(DISTINCT attendees.id) AS revenueSum
FROM
tickets
LEFT JOIN attendees ON
attendees.id = tickets.attendee_id