Fix post type query warning