Did that it didn't give any errors as you said so I set DEBUG_DATABASE to true and got these errors:
I also tried here with the original code of this topic and I had these errors:
Query: SELECT `id`, `guild_points`, `name`, `password`, `premdays`, `lastday`, `email`, `key`, `create_ip`...