Ti basta usare il DISTINCT nella query a MySQL

Bye