UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'E2BDsWJ5XG2kHyR2gnvgs0shhxr/tFQ/VfsKyhiz47E='
WHERE
key_id = 'b19b58aee163166fd99625a0c1a10496004730c5ab4a9670114d5bc890431c37'
AND (
token = 'E2BDsWJ5XG2kHyR2gnvgs0shhxr/tFQ/VfsKyhiz47E='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)