+ // Only send one reminder (the latest one), regardless of how many invitations a user has
+ $sql = 'SELECT * FROM (SELECT * FROM invitation WHERE registered_user_id IS NULL ORDER BY created DESC) invitees GROUP BY invitees.address';
+ $invitation->query($sql);