title: Unknown column in 'field list"
body: <p>i keep getting this error when trying to update/insert a record:</p>
  
  <blockquote>
    <p>Unknown column 'test' in 'field list' SQL=INSERT INTO oovea_vehiclemanager_feature_vehicles (fk_vehicleid, fk_featureid, fk_value) VALUES (13, 56, test)</p>
  </blockquote>
  
  <p>Here is the form I have setup:</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['feature'])){
      $feature = $_POST['feature'];
      $featureInput = $_POST['featureInput'];
      $database-&gt;setQuery("DELETE FROM #__vehiclemanager_feature_vehicles WHERE fk_vehicleid = " . $vehicle-&gt;id);
      $database-&gt;query();
      for ($i = 0; $i &lt; count($feature); $i++) {
          $database-&gt;setQuery("INSERT INTO #__vehiclemanager_feature_vehicles (fk_vehicleid, fk_featureid, fk_value) VALUES (" . $vehicle-&gt;id . ", " . $feature[$i] . ", " . $featureInput[$i] . ")");
          $database-&gt;query();
      }
  }
  ?&gt;
  </code></pre>
  
  <p>And here is my form fields:</p>
  
  <pre><code>&lt;?php 
  if($vehicle_feature[$i]-&gt;name): ?&gt;
  &lt;div class="checkbox_vm"&gt;   
      &lt;input type="checkbox" class="checkbox_veh" id="checkbox_addveh&lt;?php echo $i; ?&gt;" &lt;?php if ($vehicle_feature[$i]-&gt;check) echo "checked"; ?&gt; name="feature[]" value="&lt;?php echo $vehicle_feature[$i]-&gt;id; ?&gt;"&gt;   
      &lt;label for="checkbox_addveh&lt;?php echo $i; ?&gt;"&gt;&lt;?php echo $vehicle_feature[$i]-&gt;name; ?&gt;&lt;/label&gt;    
      &lt;input type="text" class="" id="input_addveh&lt;?php echo $i; ?&gt;" name="featureInput[]" value="&lt;?php echo $vehicle_feature[$i]-&gt;value; ?&gt;"&gt;    
  &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Obviously, from the error above, I can see that the value for the featureInput field is being posted, and the syntax for my "INSERT INTO" looks correct. Also, it will work if i simply remove the column for "fk_value","$featureInput[$i].</p>