Fixed: Bug when using MySQL instead of SQLite.