Codice PHP:
$query "SELECT * FROM users ORDER BY id DESC LIMIT 0 , 1";
$row mysql_fetch_row(mysql_query($query$db));
echo 
$row[0];