The M before a number refers to the catalogue of Charles Messier , while NGC is from the New General Catalogue by John Dreyer .
The M before a number refers to the catalogue of Charles Messier , while NGC is from the New General Catalogue .