Fix ambiguous SQL when using UserId.

When using the "users=id" or "users=id,id,id" I was getting a SQL ambiguous error.

Note this will still return an empty result as issue #107 is still not fixed.