我有一个条件数组,如下所示:
Array
(
[Survey.soc_med] => Array
(
[0] => Facebook
)
[Clinical.hear_aids] => Yes
)
如何在cakephp查询中使用此条件数组?
下面是我的查询:
$result=$this->Customer->query("select Customer.id FROM tblcustomers as Customer JOIN tblsurveys as Survey ON Customer.id=Survey.customer_id JOIN tblclinicals as Clinical ON Customer.id=Clinical.customer_id");