Added missing space when creating a SELECT DISTINCT