Mayfield gets court-appointed attorney