A co z tym?
select delay
from table_name,
(select id, max(sent), ip from table_name group by ip) innertable
where innertable.id = table_name.id;
Nie jestem w 100% pewien, czy zrozumiałem, co chcesz jako zestaw wyników, więc po prostu wybrałem opóźnienie.