Hi,
Try removing the extra equal operator in your query..
$result2 = MYSQL_QUERY("select title, content, tag, date from article where author == ." .$_SESSION['id']. ".");
like this
$result2 = MYSQL_QUERY("select title, content, tag, date from article where author = '" .$_SESSION['id']."'");