dont think you need this change of adding the $doJoins parameter - its not used anyway?