allow query and options in distinct
Merge pull request #2 from lalomartins/distinct-query

allow query and options in distinct