diff --git a/cel/cel_sqlite3_custom.c b/cel/cel_sqlite3_custom.c index 4596e770e7..e0b0225193 100644 --- a/cel/cel_sqlite3_custom.c +++ b/cel/cel_sqlite3_custom.c @@ -321,7 +321,7 @@ static int load_module(void) } /* is the table there? */ - sql = sqlite3_mprintf("SELECT COUNT(AcctId) FROM %q;", table); + sql = sqlite3_mprintf("SELECT COUNT(*) FROM %q;", table); res = sqlite3_exec(db, sql, NULL, NULL, NULL); sqlite3_free(sql); if (res != SQLITE_OK) {