Changed queries to fix oracle ambigious errors while searching for web content