Removed 'distinct' from SQL-queries for comma-separated-list