Small fix for querying with local sites
Small fix for querying with local sites & syntax fix