<query id="getReadedMessages" 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" />
		<condition operation="equal" column="message.message_type" var="message_type" default="R" />
		<condition operation="search" column="message.title" var="s_title" />
		<condition operation="search" column="message.content" var="s_content" />
		<group>
			<condition operation="search" column="message.title" var="s_title_content" />
			<condition operation="search" column="message.content" var="s_title_content" pipe="or" />
		</group>
	</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>
