Thanks for your comments guys. This is the full section of code
$roomnumber = mysql_result($currentuser, 0, "currentroom");
$currentroom = mysql_query("SELECT * FROM rooms WHERE number = $roomnumber LIMIT 1");
$roomname = mysql_result($currentroom, '$roomnumber', "name");
$roomname = explode(" ", $roomname);
$roomname = $roomname[0];
$roomdescription = mysql_result($currentroom, 0, "description");
If I delete the line in question, the site works but it does not work correctly. It is basically calling from a list of rooms which are each named and number