Aminosalicylates are anti-inflammatory drugs delivered straight to the colon. What they're packaged with decides their side effects.
5-ASA is an anti-inflammatory drug that acts locally in the colon. Sulphasalazine is 5-ASA joined to sulphapyridine, which causes most of its side effects, including rash, oligospermia, headache and anaemia. Mesalazine is 5-ASA alone, so it avoids these, but it causes pancreatitis 7 times more often than sulphasalazine. Olsalazine is two 5-ASA molecules that colonic bacteria split apart. Aminosalicylates can cause agranulocytosis, so check an FBC in any unwell patient taking them.