come faccio a estrarre solo l'ultimo record di questo codice:

Codice PHP:
<?php

require("config.php");
              
# Recupero i topic del forum
$query = @mysql_query("SELECT * FROM forum_lite_topics
    WHERE forum_id = '1' ORDER BY data ASC"
);


# Recupero i messaggi nel topic
$query3 = @mysql_query("SELECT MAX(topic_id) FROM 
    forum_lite_thread"
);

$result2 = @mysql_fetch_array($query2);
$result3 = @mysql_fetch_array($query3);

# Stampo a video tutti i topic del Forum selezionato 
while($result = @mysql_fetch_array($query)){ 
    echo 
"<a class=\"newlink\" href=\"thread.php?f=".$_GET['f']."&t=".$result['id']."\">"
    
$result['titolo']."</a> 
    
di "
.$result['autore']."
</font>
</font>      
    </td> 
    <td width='156' height='40' bgcolor='#FFFFCC'></td> 
    </tr></table></div>\n"

}


?>
grazie
ciao