Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/system/database/DB_active_rec.php:1730 Stack trace: #0 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/application/third_party/datamapper/system/DB_driver.php(68) : eval()'d code(9): CI_DB_active_record->_compile_select() #1 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/application/libraries/datamapper.php(1412): DM_DB_mysqli_driver->dm_call_method() #2 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/application/models/cataloguemodel.php(38): DataMapper->get_sql() #3 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/application/core/Sheppard_Controller.php(81): CatalogueModel->get_catalogues() #4 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/application/core/Sheppard_Controller.php(77): Sheppard_Controller->check_current_catalogue() #5 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/application/core/Sheppard_Controller.php(48): Sheppard_Controller->settings() #6 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/application/controllers/lot.php(19): Sheppard_Controller->__construct() #7 /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/system/core/CodeIgniter.php(306): Lot->__construct() #8 /var/www/vhosts/sheppards.ie/httpdocs/index.php(250): require_once('...') #9 {main} thrown in /var/www/vhosts/sheppards.ie/applications/sheppards-3.0/system/database/DB_active_rec.php on line 1730