How do I use the where clause in get_linked_brans?
I tried the following
$where = 'ischeme' = 1';
$jobs = $so->get_linked_beans('zz_so_zz_job_id','zz_job','','' ,'',0,$where);
But I get the following sql error
Query Failed:SELECT zz_job.id FROM zz_job WHERE zz_job.zz_so_id= '2ae503e5-d1be-7c95-74cc-48fee60192c1' AND zz_job.deleted=0 AND ii'i'::MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''i'' at line 1
How should the where statement be written?


LinkBack URL
About LinkBacks



Reply With Quote
but this forum is meant for Tutorials only.

Bookmarks