I originally posted this as plain text, but the blog software stripped out important characters, meaning everyone had to clean it up.
So I finally cleaned up the external references w/in the original file and zipped it up. Such a shame that WordPress.com won’t host a zip file!
I moved the hosting of the source code to Pastebin.com, an ad-supported text-sharing site.
Someone commented that this has trouble handling the IN clause, but it seems to work fine for me. Please let me know if you find any bugs or have improvement suggestions.