A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/Townlet.php

Line Number: 96

Backtrace:

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/application/client/controllers/Townlet.php
Line: 96
Function: _error_handler

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/Townlet.php

Line Number: 99

Backtrace:

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/application/client/controllers/Townlet.php
Line: 99
Function: _error_handler

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/Townlet.php

Line Number: 100

Backtrace:

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/application/client/controllers/Townlet.php
Line: 100
Function: _error_handler

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/application/client/models/Townlet_model.php
Line: 73
Function: get_where

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/application/client/controllers/Townlet.php
Line: 102
Function: getPrv

File: /usr/home/wh-ah5i6t4sqnjjuzbr8cm/htdocs/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 `townlet`.`display` = 1 ORDER BY `townlet`.`id` ASC' at line 4

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

Filename: models/Townlet_model.php

Line Number: 73