OAuth authorization code flow - "Missing column authorization_id"

I created another app and it works. Still would like to know how the other app may have gotten into a bad state?