Query to test and return timed lockout in MySQL
I think a more elegant solution is 

SELECT 
TIMESTAMPDIFF(MINUTE, date_last_updated, now()) as mins_since_last_update
FROM levels
WHERE id = 123


This gives me the time value as the OP requested, as an integer.