title: How do I use CI4 "model" class methods to return the contents of a list of selected fields from a table?
body: <p>CodeIgniter4 provides a new Model class that helpfully eliminates several typical CRUD coding requirements. I could use the built-in &quot;Query Builder&quot; toolset but I'd like to learn to use the new CI4 Model methods. But, I can't see how to simply return a set of selected columns from a record set. The &quot;$data = $model-&gt;findColumn('columnName')&quot; method only selects a single column. I tried using an array of column names as the argument - which almost every other CI4 class recognizes - but that produces the error:</p>
  <p>&quot;Argument 1 passed to CodeIgniter\BaseModel::findColumn() must be of the type string, array given.&quot;.</p>
  <pre><code>    $data = $model-&gt;findColumn(['title', 'content'])-&gt;where('memID', $memID);
  </code></pre>
  <p>I also see no way to &quot;chain&quot; the findColumn() method, which feels like a hack anyway. What am I missing here?</p>