From: Brenda Wallace Date: Wed, 9 Dec 2009 00:26:59 +0000 (+1300) Subject: that pesky table named user - now quoted X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=789378838b9a3ad6bff906d70c8316527aed9e98;p=quix0rs-gnu-social.git that pesky table named user - now quoted --- diff --git a/classes/Forward.php b/classes/Forward.php index e9b83a58bf..09b2d6a4ee 100644 --- a/classes/Forward.php +++ b/classes/Forward.php @@ -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();