A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: models/Artikel_model.php

Line Number: 124

Backtrace:

File: /home/sman1bulus/public_html/application/models/Artikel_model.php
Line: 124
Function: _error_handler

File: /home/sman1bulus/public_html/application/controllers/Artikel.php
Line: 137
Function: kategori_artikel

File: /home/sman1bulus/public_html/index.php
Line: 293
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 571

Backtrace:

File: /home/sman1bulus/public_html/application/models/Artikel_model.php
Line: 126
Function: query

File: /home/sman1bulus/public_html/application/controllers/Artikel.php
Line: 137
Function: kategori_artikel

File: /home/sman1bulus/public_html/index.php
Line: 293
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 MariaDB server version for the right syntax to use near '-5,5' at line 1

select judul, thumb, link, pengguna.nama as admin, id, kategori, artikel.tgl_buat, description from artikel join pengguna on pengguna.username=artikel.pengguna where artikel.status='1' and lower(kategori)='Berita' or label like '%Berita%' order by artikel.tgl_buat desc limit -5,5

Filename: models/Artikel_model.php

Line Number: 126