<query id="getReceivedMessages" 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="message.*" />
		<column name="member.user_id" />
		<column name="member.member_srl" />
		<column name="member.nick_name" />
		<column name="member.user_name" />
	</columns>
	<conditions>
		<condition operation="equal" column="message.readed" var="readed" notnull="notnull" />
		<condition operation="equal" column="message.receiver_srl" var="member_srl" 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="asc" />
		<list_count var="list_count" default="20" />
		<page_count var="page_count" default="10" />
		<page var="page" default="1" />
	</navigation>
</query>
