A 52-year-old Ferrari just smashed the record for the most expensive car ever sold at auction.

The 1962 Ferrari 250 GTO, with a somewhat dark past, was just sold by Bonhams for $34.65 million. That blew away the previous record, held by a Mercedes-Benz racer that sold last summer for $31.6 million including auction fees.

"The market right now is just so strong," said Marcel Massini, a leading Ferrari historian and adviser to collectors. "And this is one of the big prizes in the entire collecting world."