How to use DISTINCT on multiple columns for selecting from a database?
DISTINCT works on rows, not columns.
DISTINCT
You can select columns with GROUP BY though
GROUP BY