title: Unable to prepare statement in SQLite
body: <p>What's wrong with the following code?</p>
  
  <p>( ! ) Warning: SQLite3::prepare() [sqlite3.prepare]: Unable to prepare statement: 1, near &quot;:DB_NAME&quot;: syntax error in C:\xampp\htdocs\memo\DB.php on line 91</p>
  
  <p>Call Stack</p>
  
  <p># Time  Memory  Function  Location</p>
  
  <p>1 1.0436 335032 {main}( ) ..\memo.php:0 </p>
  
  <p>2 1.0471 370312 memo->__construct( ) ..\memo.php:22 </p>
  
  <p>3 1.0524 371112 DB->addRow( ) ..\memo.php:17 </p>
  
  <p>4 1.0524 371240 prepare ( ) ..\DB.php </p>
  
  <pre><code>/**
   * Add row to DB table.
   * @return bool
   */
  public function addRow($idVal, $titleStr, $contentStr){
      $query = "INSERT INTO :DB_NAME VALUES(:ID, :Title, :Content);";
      $stmt = $this-&gt;db-&gt;prepare($query);
      $stmt-&gt;bindValue(":DB_NAME", DB::DB_NAME);
      $stmt-&gt;bindValue(':id', $idVal, SQLITE3_INTEGER);
      $stmt-&gt;bindValue(":Title", $titleStr, SQLITE3_TEXT);
      $stmt-&gt;bindValue(":Content", $contentStr, SQLITE3_TEXT);
  
      return $stmt-&gt;execute();
  }
  </code></pre>