Use DISTINCT unless using full text query with API 15 or lower

Fixes #150