A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: controllers/Category.php

Line Number: 52

Backtrace:

File: /var/www/html/divapress/Apps/controllers/Category.php
Line: 52
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 '-18,18' at line 6

SELECT book.*, category.`name` AS kategori, nama_pengarang AS pengarang FROM book LEFT JOIN category ON category.`id` = category_id LEFT JOIN tbl_pengarang ON tbl_pengarang.`id` = author WHERE category.`slug` = 'pendidikan' ORDER BY tahun DESC LIMIT -18,18

Filename: models/buku/M_buku.php

Line Number: 174