remove unnecessary variables from subs query

darcs-hash:20081120122352-84dde-2bc356e446abb061ac1d7e9e9bd4f8d53d688509.gz
This commit is contained in:
Evan Prodromou 2008-11-20 07:23:52 -05:00
parent bec59ef504
commit d04556bf01

View File

@ -101,7 +101,7 @@ class GalleryAction extends Action {
'FROM profile JOIN subscription ' .
'ON profile.id = subscription.' . $lst . ' ' .
'WHERE ' . $usr . ' = ' . $profile->id . ' ' .
'AND ' . $lst . ' != ' . $usr . ' ' .
'AND subscriber != subscribed ' .
'ORDER BY subscription.created DESC ' .
$lim);