SELECT `vacancy`.`id`, `vacancy`.`job_title_final` FROM `tableone` INNER JOIN `tabletwo` ON tabletwo.client_user_id=tableone.employer WHERE (job_title_final LIKE '%expert%') AND ((org_addr_country LIKE '%nepal%') OR (org_addr_city LIKE '%nepal%') OR (org_addr_street LIKE '%nepal%'))
please help me writing the zend subquery of above sql.
Thanks.
Ok, so without a schema list:
I’m making some assumptions, that vacancy.id and vacancy.job_title_final are supposed to come from tabletwo – vacancy table doesn’t exist in the context of this query you may want to fix that so your question makes more sense.