UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'wBo5wcCZqdC9hTOCEy4XqSrf6X5CPYZmH2A908ed6QM='
WHERE
key_id = '63689c6688b8266933b2daf9b87cc97b3418bf960faaab701ede818a78946ea3'
AND (
token = 'wBo5wcCZqdC9hTOCEy4XqSrf6X5CPYZmH2A908ed6QM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)