that pesky table named user - now quoted

This commit is contained in:
Brenda Wallace 2009-12-09 13:26:59 +13:00
parent 3e9c2d779a
commit 789378838b

View File

@ -77,7 +77,8 @@ class Forward extends Memcached_DataObject
$user = new User();
$user->query('SELECT user.* FROM user JOIN subscription ON user.id = subscription.subscriber '.
$usertable = common_database_tablename('user');
$user->query("SELECT $usertable.* FROM $usertable INNER JOIN subscription ON $usertable.id = subscription.subscriber ".
'WHERE subscription.subscribed = '.$this->profile_id);
$ni = array();