Support for distinct values

adding :distinct => true

will give distinct values and will remove the id field.

There is no test code. please tell me if you want me to add it