I am using this to validate a form field

$valid = $this->isUnique(array($fieldName1 => $data, $fieldName2 => 'Y'));

executing this the query is coming like this:

SELECT COUNT(\*) AS `count` FROM `users` AS `User` WHERE ((`User`.`emailid` = ('paramita@navsoft.in')) OR (`User`.`isdeleted` = 'Y')) 

I just need to change that "OR" to "AND".

Please help me!!!!