Actually, the rule is pretty simple: it depends on the *initial sound* of the following word. If the sound is consonant, we use "a". If it is a vowel sound, we use "an".
an MP (pronounced "an em pee") = in Britain, a Member of Parliament
See? "A" Member (consonant sound) of Parliament.
What...