Fix PG error in author_groups