that pesky table named user - now quoted
This commit is contained in:
parent
3e9c2d779a
commit
789378838b
|
@ -77,7 +77,8 @@ class Forward extends Memcached_DataObject
|
||||||
|
|
||||||
$user = new User();
|
$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);
|
'WHERE subscription.subscribed = '.$this->profile_id);
|
||||||
|
|
||||||
$ni = array();
|
$ni = array();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user