묻고답하기

<query id="getNewestDocuments" action="select">
    <tables>
        <table name="modules" />
        <table name="documents" />
        <table name="comments" />
        <table name="document_categories" />
    </tables>
    <columns>
        <column name="modules.site_srl" alias="site_srl"/>
        <column name="modules.mid" alias="mid"/>
        <column name="comments.content" alias="commnet"/>
        <column name="max(comments.comment_srl)" alias="last_cnt"/>
        <column name="document_categories.title" alias="categorie"/>
        <column name="documents.*" />
    </columns>
    <conditions>
        <condition operation="equal" column="modules.site_srl" var="site_srl" />
  <condition operation="not_in" column="documents.module_srl" default="0" pipe="and" />
        <condition operation="in" column="documents.module_srl" var="module_srl" filter="number" pipe="and" />
        <condition operation="equal" column="comments.document_srl" default="documents.document_srl" pipe="and" />
        <condition operation="equal" column="document_categories.category_srl" default="documents.category_srl" pipe="and" />
        <condition operation="equal" column="comments.parent_srl" default="0" pipe="and" />
        <condition operation="equal" column="modules.module_srl" default="documents.module_srl" filter="number" pipe="and" />
    </conditions>
    <groups>
         <group column="comments.document_srl" />
    </groups>


    <navigation>
        <index var="sort_index" default="documents.list_order" order="order_type" />
        <list_count var="list_count" default="20" />
    </navigation>
</query>

---------------------------------------------------------------------------------------

현재 저한테 맞는  위젯을 만들기 위해 최근문서위젯을 수정하고 있습니다

 

 

컨셉은 최신 댓글(댓글의 댓글은 제외)과 댓글이 달린 게시물을  가져 오는것인데

SQL을 위의 처럼  작성 했지만 계속  첫번째 댓글을 가져 옵니다

어떻게 수정 해야 할까요 도움 부탁드립니다

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
의대생 첨부파일 ''열기'' 에러. [1] 2010.10.19 by fda
칼잇으마 웹진 형태 최근문서출력에서 사진이 없을때 기본 사진 나타나게? [1] 2010.10.19 by fda
축복의 통로 소풍가세요 file  
보드재학 php 프로그래밍시 언어 셋팅문제 입니다.  
행호 현재 확장변수를 전체로 출력하고 있습니다. 이것을 하나씩 따로 출력하려면 어떻게 해야 할까요? [4] 2009.06.11 by 행호
이윤우774 업그레이드 후 안됩니다. 도와주세요... [2] 2009.06.11 by 이윤우774
비니파파 DB & 관리자정보 입력에서 며칠째 버벅.... [2] 2009.06.11 by 비니파파
아사공 쓰기 및 수정 모두 안되요 ㅜ ㅜ [5] 2009.06.11 by 아사공
마이신_ 첨부파일문제...ㅜㅜ [3] 2009.06.11 by 백성찬
황정연720 ZBXE1.0.6 > XE1.2.3으로 업데이트시 [2] 2009.06.11 by 황정연720
박노열 이상한 질문인지는 모르겠습니다만..... [2] file 2009.06.11 by 박노열
도봉인포 제발 아시는분 알려주세요 ㅠㅠ [2] file 2009.06.11 by 박노열
sn 아이디로 안들어가고 에러 메시지만 나오는지요? file  
박진환 제로보드 복구하기 [3] 2009.06.11 by 박진환
sungjaeq 통계기능 작동이 이상하네요 [1] 2009.06.11 by 별사탕FS
유샤인 비나무님 덕분에 문제 해결 되었읍니다 감사합니다. 헌데 문제 하나가 더 있는 데...... [5] file 2009.06.11 by 유샤인
종선킴 메뉴만드는 것에 대한 질문 file  
알까 관리자 페이지에서 첨부파일 이름에 음영이 들어가지 않게 하려면? [2] 2009.06.11 by 알까
nellcy 외부로그인창에서요  
텍사수 geovisit(); 이게 왜 뜨는걸까요??? [5] 2009.06.11 by 아이고참