All pastes #471804 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-05 04:04 UTC
rendered paste body
$sql = "(SELECT h.*, n.* FROM {task_hierarchy} h 
INNER JOIN {node_revisions} n
ON n.nid = h.nid
INNER JOIN {task} t
ON t.nid = h.nid
WHERE h.project = %d)
UNION (SELECT h.is_project
FROM {task_hierarchy} h
WHERE h.nid = %d)";