[feature/oauth] Fix errors in OAuth

PHPBB3-11673
[feature/oauth] Fix SQL error in token storage

PHPBB3-11673