A PHP Error was encountered

Severity: Notice

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

Filename: models/Mod_news.php

Line Number: 39

Backtrace:

File: /home/kemindoi/kemindo.id/website/private/application/models/Mod_news.php
Line: 39
Function: _error_handler

File: /home/kemindoi/kemindo.id/website/private/application/controllers/News.php
Line: 70
Function: newsGetByKey

File: /home/kemindoi/kemindo.id/website/private/application/controllers/News.php
Line: 15
Function: index

File: /home/kemindoi/kemindo.id/website/public/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/kemindoi/kemindo.id/website/private/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/kemindoi/kemindo.id/website/private/application/models/Mod_news.php
Line: 44
Function: query

File: /home/kemindoi/kemindo.id/website/private/application/controllers/News.php
Line: 70
Function: newsGetByKey

File: /home/kemindoi/kemindo.id/website/private/application/controllers/News.php
Line: 15
Function: index

File: /home/kemindoi/kemindo.id/website/public/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 0, 1' at line 2

select * from tb_news where id < limit 0, 1

Filename: models/Mod_news.php

Line Number: 44