UPDATE buffer
SET lastmsgid = :lastmsgid
WHERE bufferid = :bufferid
