title: Unknown Column in 'field list'
body: <p>The following code is responsible for the MySQL error <code>Error In Insert--&gt;Unknown column 'expert manager' in 'field list'</code>. If I remove the code below it will solve the MySQL error. Do you know what's wrong with this piece of code?</p>
  
  <pre><code>$l=0;
  $source = 'expertmanager';
  mysql_query("DELETE FROM `student_questions` WHERE user_id=".$userId."");
  
  for($i=0; $i &lt; $count; $i++) 
  {   
  mysql_query("INSERT INTO `student_questions` (`user_id`, `checked_id`, `category_id`, course_id, `question`, `exe_order`, `time`,course_code, year, school, status, close, source) VALUES ('".$userId."', '".$_POST['checkbox'][$i]."', ".$this-&gt;cat.", ".$course_id.",'".$_SESSION['question']."','".(++$l)."', '".$time."', '".$course_code."', '".$year."', '".$school."', 1, ".$close.", ".$source.")") or die("Error In Insert--&gt;".mysql_error()); 
  }
  </code></pre>
  
  <p>Thanks!</p>