I am getting two results from this foreach statement.
<p>I have an array of users. If the user_login matches the row in the table, it will select the id and name etc from that. With my below query it returns two links to 'Profile' one correct and one wrong. How do i get rid of the wrong one?</p>

<pre><code>   function fetch_new_users()
        {
            $result = mysql_query("SELECT `id`, `username` FROM `users` WHERE username='{$_SESSION['user_login']}'");
            $mysql = mysql_fetch_assoc($result);

            return $mysql;
        }

        $users = fetch_new_users();
        ?&gt;
        &lt;?
        if (isset($_SESSION["user_login"])) {

        ?&gt;
        &lt;div class="fnav"&gt;


                 &lt;?php foreach($users as $user): ?&gt;
                            &lt;p&gt;
                                &lt;a href="profile.php?id=&lt;?php echo $user['id']; ?&gt;" &gt;Profile&lt;/a&gt;
                            &lt;/p&gt;
                        &lt;?php endforeach; ?&gt;
</code></pre>
