Fixed generated SQL for tagged_with :any

Closes #519.
Nevermind, i used the wrong database. Sorry.