corrects the search mysql statement to include pages that are not linked into the swarm