LOUISVILLE, Ky. (AP) — Democrat Andy Beshear, the son of Kentucky's governor, was elected as the state's next attorney general by a slim margin Tuesday, surviving a Republican onslaught that cost Democrats the governorship and the state auditor's office.