diff --git a/db.go b/db.go index c0f4e85..6ef4f89 100755 --- a/db.go +++ b/db.go @@ -484,7 +484,7 @@ func (t *TableInfo) Insert(record AssRow) (int, error) { if err != nil { return id, err } - err = t.db.conn.QueryRow("LAST_INSERT_ID();").Scan(&id) + err = t.db.conn.QueryRow("SELECT LAST_INSERT_ID();").Scan(&id) } return id, err }