UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FtOpcpv8OUEGb5quiC/Q2bnbSQjZstTjRwI++w7kNXw='
WHERE
key_id = '0a1a685af589336439a6486d1d15dc802423a0d41f4b1a3ed2f64398378f8012'
AND (
token = 'FtOpcpv8OUEGb5quiC/Q2bnbSQjZstTjRwI++w7kNXw='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)