In your opening post you mentioned fid5. Try it then again with 10:
and change the following line in your template
to:
$query = $db->simple_select("userfields", "fid10", "ufid = {$thread['uid']}");
$thread['fid10'] = $db->fetch_array($query)['fid10'];
and change the following line in your template
<td>{$memprofile['fid10']}</td>
to:
<td>{$thread['fid10']}</td>
Regards, Ad Bakker (NL)