Fixed the scenario where an author is not associated with a revision.
Fixed defect in query where the authorID was not being used but rather than table ID.
Removed an unnecessary blank line