Compile DB Selects: when checking sub selectors, check links