SELECT bufferid, lastmsgid
FROM buffer
WHERE userid = :userid
