Adding failing tests.
Add functionality.
Merge pull request #68 from Scaffold/issue-68

Can't do distinct select.