From 63ea2b7c451640910d4190c7c0d904af688a85d5 Mon Sep 17 00:00:00 2001
From: Brenda Wallace <shiny@cpan.org>
Date: Fri, 26 Jun 2009 20:25:52 +1200
Subject: changed to SQL standard of LIMIT 20 OFFSET 1 etc.

---
 classes/Fave.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'classes/Fave.php')

diff --git a/classes/Fave.php b/classes/Fave.php
index c3ec62dcf..4b28d06b4 100644
--- a/classes/Fave.php
+++ b/classes/Fave.php
@@ -79,7 +79,7 @@ class Fave extends Memcached_DataObject
         $qry .= 'ORDER BY modified DESC ';
 
         if (!is_null($offset)) {
-            $qry .= "LIMIT $offset, $limit";
+            $qry .= "LIMIT $limit OFFSET $offset";
         }
 
         $fav->query($qry);
-- 
cgit v1.2.3-54-g00ecf