Changed call to wpdb to use 2 parameters, for change in WordPress 3.5