It's probably failing at your multiple "AS" statements. I'm not a SQL guru; but my bet would be that it's something about that.
Did you try echo'ing mysql_error() to get a little more info?
EDIT: Your PHP tags aren't typed correctly BTW. Here's the debug code you could use, too:
$pminbox = mysql_query("SELECT a.pmid, a.pmtitle, a.sendid, a.date, b.username, c.username FROM pm AS a, users AS b, users AS c WHERE a.recieveid = '$userid' && a.folderid = '0' && b.id = a.recieveid && c.id = a.sendid") or die('Error! MySQL said: ' . mysql_error() . '<br><br>Query: ' . "SELECT a.pmid, a.pmtitle, a.sendid, a.date, b.username, c.username FROM pm AS a, users AS b, users AS c WHERE a.recieveid = '$userid' && a.folderid = '0' && b.id = a.recieveid && c.id = a.sendid");