UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vY/vZU9m7X9D9/DT6DL8Y6NbxXknpPvHbdzr0eGmzVQ='
WHERE
key_id = '2a1ec6cf071f434367d6c4dc4641350a5b7994890ae5590fed5a0f4759a6be88'
AND (
token = 'vY/vZU9m7X9D9/DT6DL8Y6NbxXknpPvHbdzr0eGmzVQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)