PHP and mySQL Data Errors
<p>I currently have 2 users registered on my website; jason and jason1.</p>

<p>I have a mySQL database that stores the following fields: 
<code>id message reciever sender</code></p>

<p>When a message is sent from jason1 to jason, the data comes up correctly.
However, when a message is sent from jason to jason1 both the <code>sender</code> and <code>reciever</code> fields come up as having the value of jason1.
Here is some script info:</p>

<p>The way the function is called: <a href="http://pastebin.com/BqVQ7vVE" rel="nofollow">http://pastebin.com/BqVQ7vVE</a><br>
The function itself: <a href="http://pastebin.com/1hTEhxAN" rel="nofollow">http://pastebin.com/1hTEhxAN</a><br>
<code>getmessage.php</code>, called with XHR: <a href="http://pastebin.com/u1A4hPG3" rel="nofollow">http://pastebin.com/u1A4hPG3</a><br>
And a screenshot of the database: <a href="http://img263.imageshack.us/img263/7804/mysqlz.png" rel="nofollow">http://img263.imageshack.us/img263/7804/mysqlz.png</a></p>

<p>I will take any suggestions, this is really frustrating. </p>
