diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index 4d0f9d62f6..121d6be748 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -216,7 +216,7 @@ class sql_db $this->query_result = false; $this->num_queries++; - $query .= ' LIMIT ' . ((!empty($offset)) ? $offset . ', ' . $total : $total); + $query .= ' LIMIT ' . ((!empty($offset)) ? $total . ', ' . $offset : $total); return $this->sql_query($query, $expire_time); }