added support for distinct on
Merge pull request #47 from goodybag/47-add-support-for-distinct-on

add support for distinct on