A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/Haberler.php

Line Number: 32

Backtrace:

File: /home/yorukconveyor/domains/yorukconveyor.com/public_html/application/controllers/Haberler.php
Line: 32
Function: _error_handler

File: /home/yorukconveyor/domains/yorukconveyor.com/public_html/index.php
Line: 317
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 '' at line 1

select * from haberlerdigerfoto where haberid=

Filename: controllers/Haberler.php

Line Number: 32