the id is not passed to the page as a query string parameter. you should put something like this in your Where text box:
Secondly make sure that ObjectID exists in MyTable.
P.S. If you are doing this on different objects(tables), your query is bunch of unions, but cms adds your condition each query, i.e
SELECT null as [ObjectID], ...
FROM View_CMS_Tree_Joined AS V WITH (NOLOCK, NOEXPAND) INNER JOIN MyTable1
SELECT ObjectID as [ObjectID], ...
FROM View_CMS_Tree_Joined AS V WITH (NOLOCK, NOEXPAND) INNER JOIN MyTable2
That might crush as well