EE->load->database('ext_db', TRUE); $title = ''; $content = ''; $query = $DB1 -> select('ct.title, ct.url_title, cd.field_id_9') ->from('exp_channel_titles ct') ->join('exp_channel_data cd', 'ct.entry_id = cd.entry_id') ->where(array( 'ct.url_title' => 'parti-yonetmelikleri', 'ct.site_id' => '1', 'ct.status' => 'open', )) ->limit(1) ->get(); if ($query->num_rows() > 0) { foreach($query->result_array() as $row) { $title = $row['title']; $content = $row['field_id_9']; } } ?>