#1075 Updated query for selecting already used regions in page's contents