$hook_query_fields .= ", info.points"; $hook_query_joins .= " LEFT JOIN " . TABLE_PREFIX . "info AS info ON (info.userid = post.userid) ";