A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: controllers/Berita.php

Line Number: 107

Backtrace:

File: /home/justicecollab/public_html/application/controllers/Berita.php
Line: 107
Function: _error_handler

File: /home/justicecollab/public_html/index.php
Line: 289
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/justicecollab/public_html/application/models/Model_app.php
Line: 181
Function: query

File: /home/justicecollab/public_html/application/controllers/Berita.php
Line: 116
Function: view_berita_kategori_limit

File: /home/justicecollab/public_html/index.php
Line: 289
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 '-10,10' at line 1

SELECT a.*,b.nama as kategori, c.nama as nama_user FROM berita as a JOIN kategori as b on a.id_kategori=b.id JOIN user as c on a.user=c.id_user WHERE a.status=1 AND a.id_kategori='2' ORDER BY a.tanggal DESC, a.publish_at DESC LIMIT -10,10

Filename: models/Model_app.php

Line Number: 181