I do not see the need to assign to variables when calling a function, so I would write:
<tr>
<?php
while($line_latest = mysql_fetch_assoc($result_latest))
{
echo '<td width="50%" align="center" valign="top">'
. show_user_photo($line_latest['auto_id'], 'small', 'yes')
. '</td>';
}
?>
</tr>
Oh, and I think it makes sense to just pick one of mysql_fetch_assoc() and mysql_fetch_row() instead of mysql_fetch_array().