use mapper to get values for where clause