Sounds more like a issue with your database query.
That’s not a error returned from the Twitch oAuth loops