Blunder by barrister sinks £2m trial