SELECT MAX(id) AS last_id FROM users -- last_id -- -- 33 --
SET @last_id = LAST_INSERT_ID();
set LAST_INSERT_ID= 58 -- your last id