Potresti usare anche la funzione DISTINCT() di MySQL