UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'D/oOYalfFKGgj5sVHSJGhzGzCz8l0XyUM8WgeMQtXc0='
WHERE
key_id = '88ebed590e7e92b8ed6c18bc6c4eb2a863a72805d79e179f26dbf43b0187d4f7'
AND (
token = 'D/oOYalfFKGgj5sVHSJGhzGzCz8l0XyUM8WgeMQtXc0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)