A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Berita.php

Line Number: 107

Backtrace:

File: /home/jbcom2017/public_html/ber-app/_frontend/controllers/Berita.php
Line: 107
Function: _error_handler

File: /home/jbcom2017/public_html/index.php
Line: 319
Function: require_once

Database Error

A Database Error Occurred

Error Number: 42000/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 '' at line 1

SELECT nama_daerah FROM daerah WHERE id_daerah=;

Filename: models/M_data.php

Line Number: 736