I upgraded from 2.3.3 I think.
Maybe this is the problem. When I was upgrading the script timed out when it was inserting and updating the table ppgal_user. The table is really big and it timed out. I edited the scripts to skip that process and continue the upgrading process.
Maybe that table needs to be up to date in order to these queries to work?