I once was the last one to check in a flight Rome to AMS... went through all security checks and realised at the gate while boarding they gave me a boarding pass from another person.
Made a complaint at the gate, had to get out with airport police to the business lounge counter to get a new BP. Person at the check in got fired immediately, but security personnel not...