Ok, a few points.
Yes STP can help in a looping scenario, but the offending port (or whatever the the managed switch port closest to the offending unmanaged switch and any intermediate unmanaged switches) will be cut off from the network during a loop.
Different brand switches are not a problem as STP is based on a standard, however having the unmanaged switches is a problem for the above reason.