Moved wpdb global call to the top.

https://github.com/GigaOM/gigaom/issues/5227