What is the definition of mamzer?
Answer:
A mamzer is a person who is born of a forbidden marital relationship, where the degree of the prohibition is a degree of Torah arayos.
For instance, a child born of a relationship between a married woman and a man (not her husband), or from other Torah mandated forbidden relationships, is a mamzer.
Best wishes.