<query id="getNewMessage" action="select">
    <tables>
        <table name="member_message" alias="member_message" />
        <table name="member" alias="member"/>
    </tables>
    <columns>
        <column name="*" />
    </columns>
    <conditions>
        <condition operation="equal" column="member_message.receiver_srl" var="receiver_srl" notnull="notnull" />
        <condition operation="equal" column="member_message.readed" var="readed" default="N" notnull="notnull" pipe="and" />
        <condition operation="equal" column="member_message.sender_srl" var="member.member_srl" pipe="and" />
    </conditions>
    <navigation>
        <index var="sort_index" default="member_message.list_order" order="desc" />
        <list_count var="list_count" default="1" />
        <page_count var="page_count" default="1" />
        <page var="page" default="1" />
    </navigation>
</query>
