diff --git a/Query/Builder.php b/Query/Builder.php
index <HASH>..<HASH> 100755
--- a/Query/Builder.php
+++ b/Query/Builder.php
@@ -947,7 +947,7 @@ class Builder {
 	 */
 	public function offset($value)
 	{
-		$this->offset = $value > 0 ? $value : 0;
+		$this->offset = max(0, $value);
 
 		return $this;
 	}
Use max() instead of ternary in DB offset.