A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: controllers/Berita.php

Line Number: 42

Backtrace:

File: /home/kemenagl/public_html/application/controllers/Berita.php
Line: 42
Function: _error_handler

File: /home/kemenagl/public_html/index.php
Line: 302
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 578

Backtrace:

File: /home/kemenagl/public_html/application/controllers/Berita.php
Line: 50
Function: get

File: /home/kemenagl/public_html/index.php
Line: 302
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 '-7, 7' at line 6

SELECT `berita`.*, `luck_cat_detail`.`name` as `name_detail`, `luck_cat_detail`.`code` as `code_detail` FROM `berita` LEFT JOIN `luck_cat_detail` ON `luck_cat_detail`.`id` = `berita`.`cat_detail_id` WHERE `luck_cat_detail`.`code` = 'madrasah' ORDER BY `id_berita` LIMIT -7, 7

Filename: controllers/Berita.php

Line Number: 50