Php Convert Query In My Sql To Codeigniter In Two Database Stack

Php Convert Query In My Sql To Codeigniter In Two Database Stack