1
2
3
4
5
$email = $this->Question->Visitor->find('first', array('conditions' => array('Visitor.emailaddress' => $this->data['Visitor']['emailaddress'])));
			
if($email > 0) {
	$this->data['Visitor']['id'] = $email['Visitor']['id'];
}