Why is the following SQL statement invalid in the PHP code below?
<?php
mysql_connect(localhost,john1704_manager,PASSWORD) or die("Unable to connect to SQL server");
@mysql_select_db('john1704_general') or die("Unable to select database");
$result=mysql_query("SELECT * FROM Images WHERE id=$id") or die("Can't perform Query");
$row=mysql_fetch_object($result);
Header("Content-type: image/jpg");
echo $row->Image;
?>