Fixed my SQL mess.

Signed-off-by: SkyFire <admin@projectskyfire.org>