UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'DBQDBusmxI6hZYSg4o37JFMk/bgeNJVMMFaPspwFGqg='
WHERE
key_id = '13c32937b4b4a961481b4ebbbd100e6eb54c058cbd1b2aacecaa76a1ca6d9eef'
AND (
token = 'DBQDBusmxI6hZYSg4o37JFMk/bgeNJVMMFaPspwFGqg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)