Halp me please - I'm trying to select the title of a blog and post it - but the code keeps erroring me and I don't know why :/ I've taken the code like directly from w3schools and just changed my bits

PHP Code: 
<?php
$con 
mysql_connect("localhost","*****","*****");
if (!
$con)
  {
  die(
'Could not connect: ' mysql_error());
  }

mysql_select_db("*****"$con);

$result "SELECT * FROM 'wp_posts' ".
"ORDER BY 'post_date' DESC LIMIT 0,1";

while(
$row mysql_fetch_array($result))
  {
  echo 
$row['wp_title'];
  }

mysql_close($con);
?>
And the error is
Code: 
Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /file.php on line 22
Line 22 is this one
PHP Code: 
while($row mysql_fetch_array($result)) 
Thanks in advance
.Jamie Reviewed by .Jamie on . PHP noob Halp me please - I'm trying to select the title of a blog and post it - but the code keeps erroring me and I don't know why :/ I've taken the code like directly from w3schools and just changed my bits <?php $con = mysql_connect("localhost","*****","*****"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("*****", $con); Rating: 5