public static function GetByID($id) { global $MySQL; $query = "SELECT * FROM phpmmo_journal_entry_comments WHERE comment_id = " . $id . " LIMIT 1"; $result = $MySQL->query($query); $count = $result->num_rows; if ($count == 0) { return null; } $values = $result->fetch_assoc(); return JournalEntryComment::GetByAssoc($values); }