<query id="getNewMessage" action="select">
	<tables>
		<table name="member_message" alias="message" />
		<table name="member" type="left join">
			<conditions>
				<condition operation="equal" column="member.member_srl" default="message.sender_srl" />
			</conditions>
		</table>
	</tables>
	<columns>
		<column name="*" />
	</columns>
	<conditions>
		<condition operation="equal" column="message.receiver_srl" var="receiver_srl" notnull="notnull" />
		<condition operation="equal" column="message.readed" var="readed" default="N" notnull="notnull" pipe="and" />
		<condition operation="equal" column="message.message_type" var="message_type" default="R" pipe="and" />
	</conditions>
	<navigation>
		<index var="sort_index" default="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>
