Solution:

Let lines BE and AC meet at R. It suffices to show that the points P, M and R are collinear. Since AP is tangent to the circumcircle of ABC and PNAM is cyclic, we have ∠PNM=∠PAB=∠ACB and ∠BAC=∠MPN. Thus, triangles MPN and BAC are similar with MNMP=BCAB. Also, since DM and PE are parallel and DPEM is cyclic, we get ∠PMD=∠MPE=∠ABR, so that triangles PMD and ABR are similar with PMPD=ABAR.
Now, observe that ∠PER=∠PEB=180∘−∠PMB=180∘−∠PNR, so PERN is cyclic and ∠CRB=∠DPE=∠NDM. We see that triangles CRB and NDM are similar with CRCB=NDMN. With QC=PB, we have QB=PC and Thales' theorem gives DNPD=BQPB=PCPB. Thus, applying Menelaus' theorem on triangle PAC, we obtain
ARCR⋅MBAM⋅PCBP=MNCB⋅ND⋅PD⋅ABPM⋅DNPD=MNPM⋅ABBC=1
implying that P, M and R are collinear as desired.