php - How to fix sub-query in LEFT JOIN in Codeigniter? -


i tried add in join sub-query:

    $this->db->join('stocks stn', 'stn.stocksidmf =      (select medicalfacilities.medicalfacilitiesiduser              medicalfacilities              medicalfacilities.medicalfacilitiesiduser = stn.stocksidmf , stn.stocksenddate >= unix_timestamp()         order stn.stocksid desc limit 1)', 'left', false);' 

but codeigniter spoils query. wrong in query? may somehow replace query?


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -