UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'MJAwb5mo7IsiPXUw14xRcFZRu5WGk/hfY8khEoR4ezU='
WHERE
key_id = '7550806a38b12f094de00cbcce529e9bde0329be72fff262d3aff833c21d42d6'
AND (
token = 'MJAwb5mo7IsiPXUw14xRcFZRu5WGk/hfY8khEoR4ezU='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)