UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'LuVasvaVRhz6xxwn6Kvz7MVSIwtCymCRkcaeEe+IGA0='
WHERE
key_id = '7c60964214df631c940471788504d862adf0d01261b7bb1378cefeed192ec034'
AND (
token = 'LuVasvaVRhz6xxwn6Kvz7MVSIwtCymCRkcaeEe+IGA0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)