ok..

illogical.. hehe you made me smile, because i said earlier that i went with the logic.
so what should i do... leave it like that? :
Code:
$forums=$DB_site->query('SELECT forum.*, thread.title AS threadtitle FROM forum LEFT JOIN thread ON (thread.forumid=forum.forumid AND thread.lastpost=forum.lastpost) WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');
it will not show any threads posted yesterday. i tried that first.