A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/Portal.php

Line Number: 216

Backtrace:

File: /var/www/html/divapress/Apps/controllers/Portal.php
Line: 216
Function: _error_handler

File: /var/www/html/divapress/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 'ORDER BY release_date LIMIT 6' at line 1

SELECT * from book where category_id = ORDER BY release_date LIMIT 6

Filename: models/buku/M_buku.php

Line Number: 83