Do you mind rewriting this using the newer ActiveRecord/AREL syntax? Otherwise, I'll get warnings in Rails 4+. It's along the lines of:
Event.
select("distinct events.id, events.*").
where("events.date between ?", first_of_year..last_of_year).
where("events.discipline in ?", discipline_names).
where("bar_points > 0").
where("events.team_id = ?", team).
all