SELECT p.fofTreeId, p.treeSnapnum, p.x,p.y,p.z, p.mass, p.np, m.fofTreeId
FROM MDR1.FOFMtree AS p,
(SELECT fofTreeId, mainLeafId FROM MDR1.FOFMtree
WHERE fofId=85000000000) AS m
WHERE p.fofTreeId BETWEEN m.fofTreeId AND m.mainLeafId
ORDER BY p.treeSnapnum
Occured for this query:
SELECT p.fofTreeId, p.treeSnapnum, p.x,p.y,p.z, p.mass, p.np, m.fofTreeId FROM MDR1.FOFMtree AS p, (SELECT fofTreeId, mainLeafId FROM MDR1.FOFMtree WHERE fofId=85000000000) AS m WHERE p.fofTreeId BETWEEN m.fofTreeId AND m.mainLeafId ORDER BY p.treeSnapnum