Q:

Can't accessing SQL database table but can access others on the same database

I have a database with three tables, user, update and error. 
I have set up a user and all that jazz. In my PHP i have connected to the database and the connection works just fine. However, when i try to access the update table i get this error:

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /members/pages/updates.php on line 13

When I try to access the database like this:
include ("../includes/connect_to_db_member.php");

$getUpdates = mysql_query(" SELECT * FROM update ");

if(!$getUpdates)
    echo "No Updates! <br />";

while($row = mysql_fetch_array($getUpdates))
{
    //echo $row['date'] . " " . $row['title'] . "<br />";
    //echo $row['content'];
}

I use the same code but change the table name from update to error or user and it works just fine. I don't understand the error that is being given to me so I was wondering if anyone knowns whats going on or had an error like this before?

A:

update is a mysql reserved word so that you have to enclose with backticks like this
$getUpdates = mysql_query(" SELECT * FROM `update` ");

As a side note you should consider to switching from mysql_ to PDO 

