title: Sqlite DB Error - could not prepare statement
body: <p>I am getting following error on insert statement for sqlite DB</p>
  
  <p>could not prepare statement (1 near "undefined": syntax error)</p>
  
  <p>I tried 2 variations of insert, for both error is same</p>
  
  <pre><code>var sql = "INSERT INTO Med(MedID) VALUES(?),";
  sql += "['"+dataObj[i].MedID+"']";
  
  
  var sql = "INSERT INTO Med(MedID) VALUES ('"+dataObj[i].MedID+"')";
  
  tx.executeSql(sql);
  </code></pre>