Ti stai mettendo problemi che non ci sono.
Bubu77 ti ha già dato tutte le informazioni di cui hai bisogno.
$query = mysql_query("select * from tabella order by id DESC LIMIT 0,1");
e poi ti recuperi le tue variabili come hai sempre fatto.
while($row = mysql_fetch_array($query))
{
$data = $row['data'];
$testo = $row['testo'];
}