diff --git a/db/sql/user.go b/db/sql/user.go index 182859f2..4f2f51aa 100644 --- a/db/sql/user.go +++ b/db/sql/user.go @@ -194,7 +194,7 @@ func (d *SqlDb) GetUser(userID int) (db.User, error) { func (d *SqlDb) GetUserCount() (count int, err error) { - cnt, err := d.sql.SelectInt("select count(*) from `user`") + cnt, err := d.sql.SelectInt(d.PrepareQuery("select count(*) from `user`")) count = int(cnt)