Fix token query emitted by TokenOwner migration
Fix token query emitted by TokenOwner migration

The old query made the migration script miss some
tokens.

Closes #1464

privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea