$get_notes=$vbulletin->db->query_read("select w.*, u.username as warner from ".TABLE_PREFIX."warn_notes w LEFT JOIN ".TABLE_PREFIX."user u on (u.userid=w.warned_by) where warned_user='{$post[userid]}' order by warned_time desc");