select query with inner join with some pblm : SELECT distinct response_user,patient_name,ipno,department FROM 
 response inner join patient_details  on response.response_user=patient_details.id 
 inner join key_points on response.response_key=key_points.kp_id					where department='CVTS' and MONTH(response_on) between '12' and '12' and response_key between 146 and 149 and  response_val='5' or
                    response_val='4' and kp_belongs_to='1'  order by patient_name asc

i want the name of the patients in specific department

