UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Et/zbo2ULhXWYyvRYjqIto+eajhNe0T9v/SCebq88A8='
WHERE
key_id = 'b260d5c44f014bc1b0359fee09cefdff8d04851712b68c674711d6da909f9923'
AND (
token = 'Et/zbo2ULhXWYyvRYjqIto+eajhNe0T9v/SCebq88A8='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)