UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FCpiNCDsbfDS5eJVnOGFlvPyNDgEt0ugf/fMrvjBRxc='
WHERE
key_id = 'e3e07140e4ac500caac653d88abbb660082fe7afa1b44e40ed94b32423390def'
AND (
token = 'FCpiNCDsbfDS5eJVnOGFlvPyNDgEt0ugf/fMrvjBRxc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)