I\'m having some strange feeling abour sqlite3 parameters that I would like to expose to you.
This is my query and the fail message :
#query
I know this is super old already but since your query is just a string you can always append the table name like this in C++:
std::string queryString = "SELECT id FROM " + std::string(_db_name);
or in objective-C:
[@"SELECT id FROM " stringByAppendingString:_db_name];