fixed up a limit offset to be ANSI SQL compliant

This commit is contained in:
Brenda Wallace 2009-07-23 15:07:28 +12:00
parent 9b372f5bb7
commit 27e525dbbc

View File

@ -199,7 +199,7 @@ class Profile extends Memcached_DataObject
$query .= ' order by id DESC'; $query .= ' order by id DESC';
if (!is_null($offset)) { if (!is_null($offset)) {
$query .= " limit $offset, $limit"; $query .= " LIMIT $limit OFFSET $offset";
} }
$notice->query($query); $notice->query($query);