UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0V/UgwI5aKpHO04Bd0xfQgpDvmRbpY6GdbINeO4QJ7E='
WHERE
key_id = '36a17ca6a6e10febc3a98dd348d0595467febcc817151a6692b0cecd3c8aa574'
AND (
token = '0V/UgwI5aKpHO04Bd0xfQgpDvmRbpY6GdbINeO4QJ7E='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)