diff --git a/library/think/db/Query.php b/library/think/db/Query.php index c78b17c1..796dd769 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1002,6 +1002,9 @@ class Query if (!isset($total) && !$simple) { $options = $this->getOptions(); + if (isset($options['order'])) { + unset($this->options['order']); + } $bind = $this->bind; $total = $this->count(); $results = $this->options($options)->bind($bind)->page($page, $listRows)->select();