From a47c372ac4a14d3919161334e4bffe9063e5ed32 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 26 Aug 2011 11:39:06 -0400 Subject: [PATCH] explicit join for subscribers to a profile list --- classes/Profile_list.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/classes/Profile_list.php b/classes/Profile_list.php index 50aa71f55d..c433a53fee 100644 --- a/classes/Profile_list.php +++ b/classes/Profile_list.php @@ -220,10 +220,9 @@ class Profile_list extends Managed_DataObject function getSubscribers($offset=0, $limit=null, $since=0, $upto=0) { $subs = new Profile(); - $sub = new Profile_tag_subscription(); - $sub->profile_tag_id = $this->id; - $subs->joinAdd($sub); + $subs->joinAdd(array('id', 'profile_tag_subscription:profile_tag_id')); + $subs->selectAdd('unix_timestamp(profile_tag_subscription.' . 'created) as "cursor"');