[ci skip] Fix #5178 (regression caused by #5168)
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 7677f5b..81603bf 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -1403,7 +1403,7 @@
// ORDER BY usage is often problematic here (most notably
// on Microsoft SQL Server) and ultimately unnecessary
// for selecting COUNT(*) ...
- $qb_orderby = $this->qb_order_by;
+ $qb_orderby = $this->qb_orderby;
$qb_cache_orderby = $this->qb_cache_orderby;
$this->qb_orderby = $this->qb_cache_orderby = NULL;