select interval_id from notification_intervals where name = :name