UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/Nr3tA7WGjUYjffDfx6v/4hTimRVFf5udEfcECB/vB4='
WHERE
key_id = '056441c676776467580014c2bb925294a211b89ae89f6f1f4427148476177f30'
AND (
token = '/Nr3tA7WGjUYjffDfx6v/4hTimRVFf5udEfcECB/vB4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)