Use DISTINCT for some columns

How to use DISTINCT on multiple columns for selecting from a database?

DISTINCT works on rows, not columns.

You can select columns with GROUP BY though