offset after limit

This commit is contained in:
Shish 2012-10-17 00:05:48 +01:00
parent d8c670eaa6
commit fff8318f1f

View File

@ -363,7 +363,7 @@ class CommentList extends Extension {
LEFT JOIN users ON comments.owner_id=users.id
WHERE users.id = :user_id
ORDER BY comments.id DESC
OFFSET :offset LIMIT :limit
LIMIT :limit OFFSET :offset
", array("user_id"=>$user_id, "offset"=>$offset, "limit"=>$count));
$comments = array();
foreach($rows as $row) {