$author_id doesn't exist

It looks like this should be $data['author_id'] instead