original_string: public function GetComments($ActivityIDs) {
        $Result = $this->SQL
           ->Select('c.*')
           ->From('ActivityComment c')
           ->WhereIn('c.ActivityID', $ActivityIDs)
           ->OrderBy('c.ActivityID, c.DateInserted')
           ->Get()->ResultArray();
        Gdn::UserModel()->JoinUsers($Result, array('InsertUserID'), array('Join' => array('Name', 'Photo', 'Email')));
        return $Result;
     }
code: public function GetComments($ActivityIDs) {
        $Result = $this->SQL
           ->Select('c.*')
           ->From('ActivityComment c')
           ->WhereIn('c.ActivityID', $ActivityIDs)
           ->OrderBy('c.ActivityID, c.DateInserted')
           ->Get()->ResultArray();
        Gdn::UserModel()->JoinUsers($Result, array('InsertUserID'), array('Join' => array('Name', 'Photo', 'Email')));
        return $Result;
     }
code_tokens: public function GetComments ( $ ActivityIDs ) { $ Result = $ this -> SQL -> Select ( 'c.*' ) -> From ( 'ActivityComment c' ) -> WhereIn ( 'c.ActivityID' , $ ActivityIDs ) -> OrderBy ( 'c.ActivityID, c.DateInserted' ) -> Get ( ) -> ResultArray ( ) ; Gdn :: UserModel ( ) -> JoinUsers ( $ Result , array ( 'InsertUserID' ) , array ( 'Join' => array ( 'Name' , 'Photo' , 'Email' ) ) ) ; return $ Result ; }
docstring: Get comments related to designated activity items.
  
  Events: BeforeGetComments.
  
  @since 2.0.0
  @access public
  @param array $ActivityIDs IDs of activity items.
  @return DataSet SQL results.
docstring_tokens: Get comments related to designated activity items .