What's in the rest of the query? If you 'group by' the first field, it should get rid of dupes - assuming that's the only group by in your table.
to set primary keys in a table you have to create a data definition query (or just go into the table design but that's cheating).