private static function getNoteCommentsAPI($noteId, $playerId) { $query = "SELECT note_id FROM notes WHERE parent_note_id = '{$noteId}'"; $result = Module::query($query); $comments = array(); while ($commentNoteId = mysql_fetch_object($result)) { $comment = Notes::getDetailedFullNoteObject($commentNoteId->note_id, $playerId); $comments[] = $comment; } return $comments; }