First argument to select should be a string or an array.
$this->db->select('ing_names.name, ingredients.stock');
...
//$this->db->select(['ing_names.name', 'ingredients.stock']);
Second argument to select
specifies whether to escape values or not.