Change quiz_entity_revision.uid => quiz_entity_revision.revision_uid, avoid conflict with with main column in quiz_entity table.