TypeError

CodeIgniter\Database\MySQLi\Connection::_escapeString(): Argument #1 ($str) must be of type string, null given, called in /homepages/18/d18865395/htdocs/bnb24/system/Database/BaseConnection.php on line 1296

Callstack:

  1. CodeIgniter\Database\MySQLi\Connection->_escapeString() in /homepages/18/d18865395/htdocs/bnb24/system/Database/BaseConnection.php:1296
  2. CodeIgniter\Database\BaseConnection->escapeString() in /homepages/18/d18865395/htdocs/bnb24/app/Models/Accommodations.php:672
  3. App\Models\Accommodations->filterWhere() in /homepages/18/d18865395/htdocs/bnb24/app/Models/Accommodations.php:488
  4. App\Models\Accommodations->getWhere() in /homepages/18/d18865395/htdocs/bnb24/app/Controllers/Results.php:258
  5. App\Controllers\Results->getResults() in /homepages/18/d18865395/htdocs/bnb24/app/Controllers/Results.php:74
  6. App\Controllers\Results->index() in /homepages/18/d18865395/htdocs/bnb24/system/CodeIgniter.php:932
  7. CodeIgniter\CodeIgniter->runController() in /homepages/18/d18865395/htdocs/bnb24/system/CodeIgniter.php:497
  8. CodeIgniter\CodeIgniter->handleRequest() in /homepages/18/d18865395/htdocs/bnb24/system/CodeIgniter.php:366
  9. CodeIgniter\CodeIgniter->run() in /homepages/18/d18865395/htdocs/bnb24/index.php:67