$query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "banner"); return $query->row['total'];