title: Retrieve data from sqlite, always return null
body: <p>I have 2 columns (wordid , word) in my table. I try to retrieve word to test sqlite parts.
  And the statement below always returns NULL. I'm pretty sure my database has no problem because i've tested the statement at firefox add-on (sqlite manager). </p>
  
  <pre><code>NSString *str;    
  
  const char *dbpath = [_databasePath UTF8String];
  sqlite3_stmt *statement;
  
  if (sqlite3_open(dbpath, &amp;_db) == SQLITE_OK){
  
  
      NSString *querySQL = [NSString stringWithFormat:@"SELECT word FROM Circle_En WHERE wordid=2"];
  
      const char *query_stmt = [querySQL UTF8String];
  
      if (sqlite3_prepare_v2(_db,query_stmt, -1, &amp;statement, NULL) == SQLITE_OK){
          if (sqlite3_step(statement) == SQLITE_ROW){
              str = [[NSString alloc]initWithUTF8String:(char *) sqlite3_column_text(statement, 0)];
          }
      }
  
      sqlite3_finalize(statement);
      sqlite3_close(_db);
  }
  </code></pre>
  
  <p>Any advice is appreciated.</p>
  
  <p>Best Regards,<br>
  Taha</p>