title: MYSQL Query error WHERE id = $id
body: <p>I'm creating and then editing a row in a table, however my edit mysql query in php is giving me an error that I can't figure out. Any help?</p>
  
  <p>The creation query:</p>
  
  <pre><code>$query = "INSERT INTO timelines (
  id, event_name, event_date, date_created, attendee_count, attendee_names, maximum_attendees, creator_id, creator_name, price, thumbnail
  ) VALUES (
  '{$timelineID}', '{$event_name}', '{$event_date}', '{$date_created}', '{$attendee_count}', '{$attendee_names}', '{$maximum_attendees}', '{$creator_id}', '{$creator_name}', '{$price}', '{$thumbnail}'
  )";
  </code></pre>
  
  <p>The edit query:</p>
  
  <pre><code>$query = "UPDATE timelines SET 
  event_name = '{$event_name}', 
  event_date = '{$event_date}', 
  maximum_attendees = '{$maximum_attendees}', 
  price = '{$price}', 
  thumbnail = '{$thumbnail}',
  WHERE id = {$timelineID}";
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>You have an error in your SQL syntax; check the manual that
    corresponds to your MySQL server version for the right syntax to use
    near 'WHERE id =' at line 8</p>
  </blockquote>