Fix ambiguous SQL when using UserId.
Merge pull request #116 from mizaki/master

Fix ambiguous SQL when using UserId.