A man was actually driving the car that crashed into a Riverdale apartment early Sunday morning — throwing a sleeping woman from her bed — and police detectives have ticketed him and the woman who initially told them she was driving during the incident, authorities said Tuesday.

The bizarre affair began about 3:35 a.m. Sunday, when Prince George’s County police officers were called to the 6800 block of Riverdale Road because a car had crashed into an apartment there. A 37-year-old woman sleeping inside the apartment was injured in the crash, as was a 29-year-old woman who lived in the same building and claimed to have been driving the car, police said Sunday.

Sgt. Sonya Rorls, a Prince George’s County Police spokeswoman, said on Sunday that the 29-year-old told investigators she was pulling into a parking spot when her “brakes gave out.” On Tuesday, police issued a news release saying the woman, who they identified as 36-year-old Akoswa J. Haynes, told investigators she “inadvertently depressed the gas pedal instead of the brake and accelerated forward into the building window.”

Another police spokeswoman said she could not explain the discrepancies in the reporting of the woman’s age and story to police.

Investigators, though, determined that Haynes was not driving — based in some part on a tip from a local TV reporter, police said. She was ticketed for knowingly giving false accident report information, police said.

The actual driver, police said, was David A. Smith, 39, who lived with Haynes. Smith was ticketed for a number of charges, including driving without a license, negligent driving and failure to immediately return and remain at scene of accident involving bodily injury, police said.

The woman inside the apartment during the crash has since been released from the hospital and is expected to survive, police have said.