SELECT kullanici FROM tablo WHERE KayitIP IN (SELECT KayitIP FROM tablo UNION SELECT SonIP FROM tablo) OR SonIP IN (SELECT KayitIP FROM tablo UNION SELECT SonIP FROM tablo) tarzı bir şey düşünülebilir, tek sorgu değil de çift sorgu daha performanslı olur burada bence