Etwas wie
SELECT *
FROM notificationTable notification
LEFT JOIN commentTable comment
ON (notification.typeID = comment.ID AND notification.type == 'comment')
LEFT JOIN evenTable event
ON (notification.typeID = event.ID AND notification.type == 'accept')
WHERE notification.userID = 2
Aber ich empfehle dringend, Ihr System umzugestalten, um polymorphe Beziehungen zu vermeiden...