I need to check if a record exists or not in php zend.
I have the following sql
query which works fine and gives the proper results
(SELECT * FROM email where isLogged = 1 and emailId='demo@xyz.com')
UNION
(SELECT * FROM email where idPeople = 5 and emailId='demo@xyz.com');
I want to write this query using Zend_Validate_Db_RecordExists
to check if record with email= 'demo@xyz.com'
exists or not under said conditions.