In both of your cases, my guess would be your emulator doesen't use the account_locked column, but your Database has it anyways, My best bet would be looking into if you've installed the wrong Database, or disabling mySQL's Strict Mode.
Disabling strict mode *may* fix it as it will ignore columns that aren't used, that said, finding the correct Database to install would definitely be preferred for stability.
Loool i am same issue alsoAre you by any chance using Rehab's Habbo edit?