7 sqlite3_stmt *zpm_dbquery(struct zpm *zpm, char *query, ...) {
14 if (!zpm || zpm->error || !zpm->db) {
21 va_start(args, query);
22 sql = sqlite3_vmprintf(query, args);
30 rv = sqlite3_prepare_v2(db, sql, strlen(sql), &st, NULL);
31 if (rv != SQLITE_OK) {