__BIND_INT(db, stmt, idx++, bg_category);
__BIND_TEXT(db, stmt, idx++, mfx->type ? mfx->type : "tpk");
__BIND_TEXT(db, stmt, idx++, mfx->root_path);
- __BIND_TEXT(db, stmt, idx++, mfx->api_version);
+ __BIND_TEXT(db, stmt, idx++, app->api_version);
__BIND_TEXT(db, stmt, idx++, effective_appid);
__BIND_TEXT(db, stmt, idx++,
__get_bool(app->splash_screen_display, true));