$hook_query_fields .= ", user.usergroupid";$hook_query_joins .= "LEFT JOIN ". TABLE_PREFIX ."user AS user ON(user.userid=postuserid)";