Yeah, the reason I pulled this out into a function was so we could check that only a single result was returned from the query.  And then I forgot to even put that check in...