i guess you're refering to this article
which i didn't know about until you mentioned it (i don't check the KB very often). seeing as how i didn't know about that mod, it seems unlikely that this mod would be based off of that code (check the code in that mod if you don't believe me - they're rather dissimiler in terms of how they were written).
functionally, my mod and the code in that KB (atleast the first segment of code) do appear pretty similar. that mod deletes the oldest 50 sessions from session table, mine deletes all the guest sessions. that mod only works on MySQL (even if the if statement forcing the DB to be sql were removed, the query would still only work on MySQL) whereas mine should work on all DB types (because mine uses much more standardized SQL syntax).
so... take your pick. both seek to do the same thing, but in different ways.