- bugfix where "distinct" didn't work
for queries and rawqueries.