A pilot who accidentally locked himself in the bathroom of his LaGuardia-bound plane caused a terror scare last night when a helpful passenger with an accent tried to come to his rescue by banging on the cockpit door.

The embarrassing comedy of errors began when the captain of a Chatauqua Airlines flight from Asheville, N.Car., decided to take a bathroom break before landing.

But when he tried to get out of the men’s room, the door jammed, trapping him in the tight quarters.