Fix queries on multisite
Merge pull request #31 from Automattic/query-fix

Fix queries on multisite