<query id="getRelatedMessages" action="select">
    <tables>
        <table name="member_message" />
    </tables>
	<columns>
		<column name="message_srl" />
		<column name="related_srl" />
	</columns>
    <conditions>
        <condition operation="in" column="message_srl" var="message_srls" notnull="notnull" />
        <condition operation="equal" column="message_type" var="message_type" notnull="notnull" pipe="and" />
        <condition operation="equal" column="sender_srl" var="sender_srl" pipe="and" />
        <condition operation="equal" column="receiver_srl" var="receiver_srl" pipe="and" />
    </conditions>
</query>
