another whitespace SQL error

darcs-hash:20080722161752-84dde-aaf5762ef3d376f0e8f335ff8f7811e3162d33fb.gz
This commit is contained in:
Evan Prodromou 2008-07-22 12:17:52 -04:00
parent 2f73f8a5e2
commit 97b1552c9a

View File

@ -134,7 +134,7 @@ class User extends DB_DataObject
$notice = new Notice();
$notice->query('SELECT notice.* ' .
'FROM notice JOIN subscription on notice.profile_id = subscription.subscribed' .
'FROM notice JOIN subscription on notice.profile_id = subscription.subscribed ' .
'WHERE subscription.subscriber = ' . $this->id . ' ' .
'ORDER BY created DESC, notice.id DESC ' .
'LIMIT ' . $offset . ', ' . $limit);