perhaps you're pulling too much information back?
If you're using phpmyadmin, you can copy the sql statement and paste it into the SQL box. Otherwise, try echoing out your sql, ie:
$sql = "SELECT * FROM games WHERE `ref` = '$fullname' OR AR1 = '$fullname' OR AR2 = '$fullname' AND refaccept='' AND AR1accept='' AND AR2accept='' ORDER BY date ASC";
echo $sql;
...just so you can see what information is being pulled out of your database. Narrow down as necessary.