A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: models/Mdl_archive.php

Line Number: 57

Backtrace:

File: /home/rani567/public_html/application/modules/archive/models/Mdl_archive.php
Line: 57
Function: _error_handler

File: /home/rani567/public_html/application/modules/archive/controllers/Archive.php
Line: 77
Function: fetch_data

File: /home/rani567/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/rani567/public_html/application/modules/archive/models/Mdl_archive.php
Line: 67
Function: get

File: /home/rani567/public_html/application/modules/archive/controllers/Archive.php
Line: 77
Function: fetch_data

File: /home/rani567/public_html/index.php
Line: 316
Function: require_once

Database Error

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 '-9, 9' at line 9

SELECT * FROM `posts` JOIN `post_image` ON `post_image`.`P_ID` = `posts`.`P_ID` JOIN `images` ON `images`.`I_ID` = `post_image`.`I_ID` WHERE `L_ID` = 1 AND `P_Status` = '1' AND `C_ID` = 1 ORDER BY `P_Date` DESC LIMIT -9, 9

Filename: modules/archive/models/Mdl_archive.php

Line Number: 67