public Post(int id) {
        Connection conn = null;
        Statement stmt = null;
        ResultSet rs = null;
        try{
            conn = ConnectionManager.getConnection();
            stmt = conn.createStatement();
            rs = stmt.executeQuery("SELECT * FROM post WHERE post_id="+id);
            rs.next();
            this.post_id = id;
            this.body = (rs.getString("body"));
            this.header = (rs.getString("header"));
            this.post_user = (rs.getString("post_user"));
        
            long milli = rs.getTimestamp("post_date").getTime()+(rs.getTimestamp("post_date").getNanos()/1000000);
            Calendar now = Calendar.getInstance();
            now.setTime((new java.util.Date(milli)));
            this.post_date = now.get(Calendar.DATE) +"-"+ (now.get(Calendar.MONTH)+1) +"-"+ now.get(Calendar.YEAR);
        
            rs = stmt.executeQuery("SELECT * FROM comment WHERE post_id="+id);
            rs.last();
            int commentLen = rs.getRow();
            rs.first();
            comment = new Comment[commentLen];
            for(int i=0;i<commentLen;i++){
                comment[i] = new Comment(rs.getInt("comment_id"));
                rs.next();
            }
        }catch(Exception sql){
            System.out.println("SQL Error in POST" + sql.getMessage());            
        }finally{
            
            if (rs != null)	{
                try {
                rs.close();
                } catch (Exception e) {}
                rs = null;
                }

            if (stmt != null) {
                try {
                stmt.close();
                } catch (Exception e) {}
                stmt = null;
                }

            if (conn != null) {
                try {
                conn.close();
                } catch (Exception e) {
                }

                conn = null;
            }
        }
    }