A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Blog.php

Line Number: 90

Backtrace:

File: /home/trimegah/public_html/application/controllers/Blog.php
Line: 90
Function: _error_handler

File: /home/trimegah/public_html/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/trimegah/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home/trimegah/public_html/application/models/Blog_model.php
Line: 153
Function: query

File: /home/trimegah/public_html/application/controllers/Blog.php
Line: 90
Function: _get_data_other

File: /home/trimegah/public_html/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 'AND publish_status = '1' AND (publish_time is null OR publish_time <= '2017-12-1' at line 1

SELECT * FROM tbl_content where id_cat= AND publish_status = '1' AND (publish_time is null OR publish_time <= '2017-12-17 22:36:13') ORDER BY id_content desc LIMIT 6

Filename: models/Blog_model.php

Line Number: 153