Hello Huseyin
I have many pages which share the same "PAGE NAME", but there are not on the same level. For example:
Level1/PAGE_NAME_EXAMPLE
Level1/level2/PAGE_NAME_EXAMPLE
Level1/level2/level3/PAGE_NAME_EXAMPLE
$pages->find('template=templateNAME')->pageQueryJson($query);
So for example if we had to retrieve the above example of pages I would get only one of those. I'm not sure if it gets the first or the last match.
If I change the "PAGE NAME" to something unique then I'm getting the page.
Thank you
Spyros