Index: profile.module =================================================================== RCS file: /cvs/drupal/drupal/modules/profile.module,v retrieving revision 1.102 diff -u -r1.102 profile.module --- profile.module 1 Aug 2005 05:14:05 -0000 1.102 +++ profile.module 1 Aug 2005 12:20:56 -0000 @@ -53,8 +53,7 @@ else if ($op == 'view') { if (user_access('access user profiles')) { if ((arg(0) == 'node') && is_numeric(arg(1)) && (arg(2) == NULL)) { - $result = db_query('SELECT uid FROM {node} WHERE nid = %d ORDER BY uid DESC', arg(1)); - $node = db_fetch_object($result); + $node = node_load(arg(1)); $account = user_load(array('uid' => $node->uid)); if ($use_fields = variable_get('profile_block_author_fields', array())) {