David W. Mason, 40, picked a bad seat.

As he was masturbating in a theater room in C.J.?s Adult Book Store an undercover cop was sitting nearby.

And he — ugh — witnessed the act.

Outside the store Mason ran from cops when they tried to arrest him. They caught him as he got in his truck in the parking lot, reports the Bradenton Herald.