Index: guestbook.module =================================================================== --- guestbook.module (revision 1005) +++ guestbook.module (revision 1006) @@ -350,7 +350,7 @@ function guestbook_page($account, $op = ORDER BY g.created DESC"; if (!empty($comment_entry)) { // Fetch only guestbook entry for administrative comment. - $result = db_query($sql, $uid, $comment_entry); + $result = db_query($sql, $account->uid, $comment_entry); } else { $result = pager_query($sql, $limit, 0, "SELECT COUNT(*) FROM {guestbook} WHERE recipient = %d", $account->uid);