Quote any references to tag.id in raw sql
Merge pull request #431 from kenzai/quote-tag-id

Quote any references to tag.id in raw sql