UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ZsIjf42SNDK8Ow5GSgAKYnsv0ZbOdm1VXaHbli/XTzY='
WHERE
key_id = '00f32c0f24abbaa5d8f0c00bc855620aa737fe53e1c2db64a1304f821e037fc5'
AND (
token = 'ZsIjf42SNDK8Ow5GSgAKYnsv0ZbOdm1VXaHbli/XTzY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)