A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: models/Posting_model.php

Line Number: 187

Backtrace:

File: /home/news24xx/public_html/application/models/Posting_model.php
Line: 187
Function: _error_handler

File: /home/news24xx/public_html/application/models/Posting_model.php
Line: 180
Function: calculateRealOffset

File: /home/news24xx/public_html/application/models/Posting_model.php
Line: 113
Function: paginate

File: /home/news24xx/public_html/application/controllers/Blog.php
Line: 41
Function: getPostingByCategory

File: /home/news24xx/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/news24xx/public_html/application/models/Posting_model.php
Line: 115
Function: get

File: /home/news24xx/public_html/application/controllers/Blog.php
Line: 41
Function: getPostingByCategory

File: /home/news24xx/public_html/index.php
Line: 315
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 '-5, 5' at line 8

SELECT * FROM `posting` JOIN `category` ON `category`.`id` = `posting`. `id_category` JOIN `users` ON `users`.`id` = `posting`. `id_user` WHERE `posting`.`is_active` = 'Y' AND `category`.`slug` = 'css' ORDER BY `posting`.`id` DESC LIMIT -5, 5

Filename: models/Posting_model.php

Line Number: 115