<query id="getTotalCommentListWithinMember" action="select">
    <tables>
        <table name="comments" />
        <table name="documents" />
        <table name="member" />
    </tables>
    <columns>
        <column name="comments.*" />
    </columns>
    <conditions>
        <condition operation="equal" column="documents.document_srl" var="comments.document_srl" notnull="notnull" />
        <condition operation="equal" column="member.member_srl" var="comments.member_srl" notnull="notnull" pipe="and" />
        <condition operation="equal" column="member.user_id" var="s_user_id" notnull="notnull" pipe="and" />
        <condition operation="equal" column="comments.is_secret" var="s_is_secret" pipe="and" />
		<condition operation="equal" column="comments.status" var="s_is_published" pipe="and" />
		<condition operation="in" column="comments.status" var="statusList" pipe="and" />
		<condition operation="in" column="comments.member_srl" var="s_member_srl" pipe="and" />
        <group pipe="and">
            <condition operation="search" column="comments.content" var="s_content" />
            <condition operation="like_prefix" column="comments.user_name" var="s_user_name" pipe="or" />
            <condition operation="like_prefix" column="comments.nick_name" var="s_nick_name" pipe="or" />
            <condition operation="like" column="comments.email_address" var="s_email_address" pipe="or" />
            <condition operation="like" column="comments.homepage" var="s_homepage" pipe="or" />
            <condition operation="like_prefix" column="comments.regdate" var="s_regdate" pipe="or" />
            <condition operation="like_prefix" column="comments.last_update" var="s_last_upate" pipe="or" />
            <condition operation="like_prefix" column="comments.ipaddress" var="s_ipaddress" pipe="or" />
        </group>
    </conditions>
    <navigation>
        <index var="sort_index" default="comments.list_order" order="asc" />
        <list_count var="list_count" default="20" />
        <page_count var="page_count" default="10" />
        <page var="page" default="1" />
    </navigation>
</query>
