A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/News.php

Line Number: 116

Backtrace:

File: /var/www/html/application/client/controllers/News.php
Line: 116
Function: _error_handler

File: /var/www/html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/News.php

Line Number: 119

Backtrace:

File: /var/www/html/application/client/controllers/News.php
Line: 119
Function: _error_handler

File: /var/www/html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/News.php

Line Number: 120

Backtrace:

File: /var/www/html/application/client/controllers/News.php
Line: 120
Function: _error_handler

File: /var/www/html/index.php
Line: 316
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 `news`.`display` = 1 ORDER BY `news`.`id` ASC' at line 4

SELECT `news`.`id`, `news`.`title`, `menu`.`html_path` FROM `news` JOIN `menu` ON `news`.`category_id` = `menu`.`id` WHERE `news`.`id` > 116 and `news`.`category_id` in () and `news`.`display` = 1 ORDER BY `news`.`id` ASC

Filename: models/News_model.php

Line Number: 89