i have a song name in db, while updating, there are more duplicated rows in db
for example :-
ID - 200  | TAGS - akon
ID - 201  | TAGS - akon
ID - 204  | TAGS - akon
i need to omit duplicate data's or delete those duplicate rows.
i am retrieving data usings
<? 
$result = mysql_query("SELECT * FROM tags  WHERE tag !='' ORDER by id DESC LIMIT 30");
while($row = mysql_fetch_array($result)) {
  $title = str_replace('-',' ',$row['tag']);
  if (strlen($title) > 50)
    $title = substr($title, 0, strrpos(substr($title, 0, 50), ' ')) . '...';
  $title = str_replace('---','-',$title);
  $title = str_replace('--','-',$title);
  $tag = str_replace('---','-',$row['tag']);
  $tag = str_replace('--','-',$tag);
  echo "<a href=/mp3/".UrlText($tag)."/ title=\"".$title." \">".$title . " </a> :: "; 
}
?>
i need to omit or delete those duplicated rows and show only unique content
 
     
    