A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/Main.php

Line Number: 197

Backtrace:

File: /home/cptnet/domains/cachphathai.net/public_html/application/modules/archive/controllers/Main.php
Line: 197
Function: _error_handler

File: /home/cptnet/domains/cachphathai.net/public_html/index.php
Line: 273
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1048

Column 'id' cannot be null

INSERT INTO `ratings` (`id`, `total_votes`, `total_value`, `used_ips`) VALUES (NULL, 18, 163.8, '')

Filename: modules/archive/models/Ratings_model.php

Line Number: 36