public static function fetchFromDb($id)
 {
     global $logger;
     $logger->LogInfo("Fetching gallery image for id: {$id}");
     if (!is_numeric($id)) {
         $logger->LogError("Gallery image id: {$id} is not a valid number");
         return null;
     }
     $sql = "SELECT * FROM bsi_gallery_images WHERE id = " . $id;
     return GalleryImage::fetchFromDbSqlSingle($sql);
 }