$threads = $db->query_read(" SELECT threadid FROM " . TABLE_PREFIX . "thread WHERE threadid >= " . $vbulletin->GPC['startat'] . " ORDER BY threadid DESC LIMIT " . $vbulletin->GPC['perpage'] );