From: Brenda Wallace Date: Thu, 23 Jul 2009 03:07:28 +0000 (+1200) Subject: fixed up a limit offset to be ANSI SQL compliant X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=27e525dbbc126b4fce91c89f25153dfe2b771ee9;p=quix0rs-gnu-social.git fixed up a limit offset to be ANSI SQL compliant --- diff --git a/classes/Profile.php b/classes/Profile.php index 224b61bd2e..32de608cff 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -199,7 +199,7 @@ class Profile extends Memcached_DataObject $query .= ' order by id DESC'; if (!is_null($offset)) { - $query .= " limit $offset, $limit"; + $query .= " LIMIT $limit OFFSET $offset"; } $notice->query($query);