TableRowIterator tri = DatabaseManager.query(c, "tasklistitem", myquery);
TableRowIterator tri = DatabaseManager.query(c, "workflowitem", myquery);
    public static List getPooledTasks(Context c, EPerson e)        throws SQLException    {        ArrayList mylist = new ArrayList();        String myquery = "SELECT workflowitem.* FROM workflowitem, TaskListItem"            + " WHERE tasklistitem.eperson_id=" + e.getID()            + " AND tasklistitem.workflow_id=workflowitem.workflow_id";                    TableRowIterator tri = DatabaseManager.query(c, "tasklistitem", myquery);        while( tri.hasNext() )        {            mylist.add( new WorkflowItem( c, tri.next() ) );        }        return mylist;    }