Fix broken query in File::getLinksTo()