I\'m using CodeIgniter\'s Active Record class to query the MySQL database. I need to select the rows in a table where a field is not set to NULL:
$this->d
Much better to use following:
For is not null:
where('archived IS NOT NULL', null);
For is null:
where('archived', null);