if (!($vbulletin->userinfo['userid'] AND in_coventry($vbulletin->userinfo['userid'], true))) { $counter_select = str_replace(', ', ', forum.', $counter_select); } $tachyjoin .= " LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = forum.lastthreadid) "; $counter_select .= ", thread.threadphoto";