Root selection according other pagination tools

changed root selection in Walkers from looping queryComponents to using
$AST->fromClause as other walkers have