UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'UVZwO0I72cdZG6GpmmHWjRuYz3TF4SvdHR+qpgDB8QM='
WHERE
key_id = 'ba8b1d84ec64f8477b2f590d8df88ab17be42170ab763721b85432d7fb5da143'
AND (
token = 'UVZwO0I72cdZG6GpmmHWjRuYz3TF4SvdHR+qpgDB8QM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)