$db_res = CForumTopic::GetList(array("LAST_POST_DATE"=>"DESC","SORT"=>"ASC"), array("FORUM_ID"=>1,"APPROVED"=>"Y"),false,5); while ($ar_res = $db_res->Fetch()) { ... }