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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -