Or was this gun something that looked like an AK-47?
It probably was merely a semi-auto look alike. But actual AK-47s are not illegal. If they were produced/imported/"made" before the ban and the appropriate tax has been paid on them, they are perfectly legal to own as far as the federal government, and those of many states, are concerned. Not California of course.