$sql = "SELECT * FROM diario WHERE Nick = '$valore'";
$query = mysql_query($sql);
$numero_righe = mysql_num_rows($query); //numero righe trovate, poi ti sposti alla riga che vuoi con
mysql_data_seek($query,$numero_righe);
e stampi normalmente... prova.
ciao.