diff --git a/laravel/database/query.php b/laravel/database/query.php index 0f20d10b..fc7f91ce 100644 --- a/laravel/database/query.php +++ b/laravel/database/query.php @@ -679,7 +679,9 @@ class Query { // retrieved the count from the table. list($orderings, $this->orderings) = array($this->orderings, null); - $page = Paginator::page($total = $this->count($columns), $per_page); + $total = $this->count(reset($columns)); + + $page = Paginator::page($total, $per_page); $this->orderings = $orderings;