while ($row = $rs->fetch_assoc()) {
                        $ids[] = $row['privmsgs_id']; 
                    }