public function getQuerystr($extendedFieldList, $additionalTableList, $additionalJoinList, $ourUserId, $criteriaFilter, $sortList, $limit, $offset)
    {
        /*
         * Run the query with a limit always increased by one. this allows us to
         * check whether any more results are available