A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 86

Backtrace:

File: /home/keberpih/public_html/application/controllers/Main.php
Line: 86
Function: _error_handler

File: /home/keberpih/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/keberpih/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/keberpih/public_html/application/libraries/Common.php
Line: 394
Function: query

File: /home/keberpih/public_html/application/controllers/Main.php
Line: 86
Function: get_index

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

Database Error

Sebuah Kesalahan Basis Data Terjadi

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 'and data_year > (select max(data_year) from ci_data)-2 order by data_year desc' at line 1

select data_year,data_val from ci_data where data_indicator_id = 35 and data_province_id= and data_year > (select max(data_year) from ci_data)-2 order by data_year desc

Filename: libraries/Common.php

Line Number: 394