well i'll take a look and repost it in a few... you want the id number though yes? not the name? i'll test it... didn't try i yet...
g-force2k2
Edit: just saw i forgot to block out coding ;\ and you didn't get a parse error?
replace the coding i gave you with this instead:
PHP Code:
// +++++++ Last Post Thread ID [ Start ] +++++++
$getid=$DB_site->query('SELECT threadid FROM thread ORDER BY lastpost DESC LIMIT 1');
$id=$getid[threadid];
$lastthread="<a href=\"showthread.php?s=$session[sessionhas]&threadid=$id\">$id</a>";
// +++++++ Last Post Thread ID [ End ] +++++++