$sortfield="lastpost";
$sortfield="thread.lastpost";
$sortfield='lastpost';
$sortfield='thread.lastpost';