title: Object of class CodeIgniter\Database\MySQLi\Builder could not be converted to string
body: <p>Heres my controller :</p>
  <pre><code>public function create()
  {
      session();
      $data = [
          'main' =&gt; 'prosescutting/create',
          'validation' =&gt; \Config\Services::validation(),
          'title' =&gt; 'Form Tambah Proses Cutting',
          'kodeunik' =&gt; $this-&gt;pcuttingModel-&gt;buat_kode()
      ];
      return view('template/template', $data);
  }
  </code></pre>
  <p>Model :</p>
  <pre><code>public function buat_kode()   { 
      
      $query = $this-&gt;db-&gt;table('proses_cutting')
                          -&gt;orderBy('kode_packing_list', 'DESC')
                          -&gt;limit(1);
      // $kodemax = $kode;
      // $kodejadi = &quot;PLIK059&quot;.$kodemax;
      return $query;
  </code></pre>
  <p>It show me errors <strong>Object of class CodeIgniter\Database\MySQLi\Builder could not be converted to string</strong> the line that show was</p>
  <p><code>&lt;td&gt;&lt;input type=&quot;text&quot; name='kode_packing_list' class=&quot;form-control&quot; value=&quot;&lt;?= $kodeunik; ?&gt;&quot; readonly&gt;&lt;/td&gt;</code></p>
  <p>which is in my view/create.php</p>