I have isolated it down to
while( $row = $roster->db->fetch($result) )
on line 2456.
Everything else on roster works fine.
I thought maybe it was something in the DB so I completely dumped all the roster tables and did a fresh install, but I am still getting the error when a person has left the guild.
Edit:
I do not know if this has anything to do with the fact that i'm running it on windows and not linux.
I checked on my linux server to, same thing.