<query id="getMemberListWithinGroup" action="select">
	<tables>
		<table name="member" />
		<table name="member_group_member" alias="mgm" />
	</tables>
	<columns distinct="distinct">
		<column name="member.*" />
	</columns>
	<conditions>
		<condition operation="equal" column="member.member_srl" var="mgm.member_srl" notnull="notnull" />
		<condition operation="in" column="mgm.group_srl" var="selected_group_srl" notnull="notnull" />
		<condition operation="equal" column="member.is_admin" var="is_admin" />
		<condition operation="equal" column="member.denied" var="is_denied" pipe="and" />
		<condition operation="equal" column="member.status" var="status" pipe="and" />
		<condition operation="in" column="member.member_srl" var="member_srls" pipe="and" />
		<group pipe="and">
			<condition operation="like" column="member.user_id" var="s_user_id" />
			<condition operation="like" column="member.user_name" var="s_user_name" pipe="or" />
			<condition operation="like" column="member.nick_name" var="s_nick_name" pipe="or" />
			<condition operation="like" column="member.nick_name" var="html_nick_name" pipe="or" />
			<condition operation="like" column="member.email_address" var="s_email_address" pipe="or" />
			<condition operation="like" column="member.phone_number" var="s_phone_number" pipe="or" />
			<condition operation="like" column="member.birthday" var="s_birthday" pipe="or" />
			<condition operation="like" column="member.extra_vars" var="s_extra_vars" pipe="or" />
			<condition operation="like" column="member.description" var="s_description" pipe="or" />
			<condition operation="like_prefix" column="member.regdate" var="s_regdate" pipe="or" />
			<condition operation="like_prefix" column="member.ipaddress" var="s_ipaddress" pipe="or" />
			<condition operation="like_prefix" column="member.last_login" var="s_last_login" pipe="or" />
			<condition operation="like_prefix" column="member.last_login_ipaddress" var="s_last_login_ipaddress" pipe="or" />
			<condition operation="more" column="member.regdate" var="s_regdate_more" pipe="or" />
			<condition operation="less" column="member.regdate" var="s_regdate_less" pipe="or" />
			<condition operation="more" column="member.last_login" var="s_last_login_more" pipe="or" />
			<condition operation="less" column="member.last_login" var="s_last_login_less" pipe="or" />
		</group>
	</conditions>
	<navigation>
		<index var="sort_index" default="member.list_order" order="sort_order" />
		<list_count var="list_count" default="20" />
		<page_count var="page_count" default="10" />
		<page var="page" default="1" />
	</navigation>
</query>
