UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+Wn/s/0G0BfakVghqrzxPKFyW9sP3pdvMq1jyIxVyd8='
WHERE
key_id = 'fff68dbcc92847f7104eb638e3c725d2bcd260cbad8b6d7e633a4d856a3106b8'
AND (
token = '+Wn/s/0G0BfakVghqrzxPKFyW9sP3pdvMq1jyIxVyd8='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)