what bike?.....on my srx my rear sprocket is loose, not the sprocket itself, but the carrier, i have replaced the carrier bearing, and the cush rubbers, but it still wobbles nicely, doesn't seem to cause any problems. But your chain must have been very slack to jump off the front sprocket, is the chain knackered?, looks like you might be into a chain/sprocket replacement.