I have an SQLite database, eventually will be a MySQL database and I'm using Zend Framework. I'm trying to fetch all the rows in a table where the 'date_accepted'
column is empty/null/doesn't have a value. This is what I have so far:
public function fetchAllPending()
{
$select = $this->getDbTable()->select();
$select->where('date_accepted = ?', 'null');
return $this->fetchAll($select);
}
What am I doing wrong? How would you write this in plain SQL, and/or using Zend_Db_Select
?