I thought this must be just one line or one function. I stared at the code and the database, and didn't get what's the point of the matter. Sorry. I just could reproduce it, but didn't know why it works that way.