How to check if a member is in one of the two tables and only select that table where it exists? The query should check if the member sent a request to join a group or if the me