while ($row = $rs->fetch_assoc()) {
                        if (!in_array($row['privmsgs_id'], $return)) {
                            $return[] = $row['privmsgs_id']; 
                        }
                    }