A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Home.php

Line Number: 145

Backtrace:

File: /application/controllers/Home.php
Line: 145
Function: _error_handler

File: /index.php
Line: 318
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: controllers/Home.php

Line Number: 145

Backtrace:

File: /application/controllers/Home.php
Line: 145
Function: _error_handler

File: /index.php
Line: 318
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /application/models/Eksperci_model.php
Line: 46
Function: get

File: /application/controllers/Home.php
Line: 160
Function: get_ekspert

File: /index.php
Line: 318
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 ') AS ocena FROM `eksperci` WHERE `ekspert_id` IS NULL' at line 1

SELECT *, (SELECT AVG(reviews.rating) FROM reviews WHERE reviews.reference_type='eksperci' AND reviews.reference_id=) AS ocena FROM `eksperci` WHERE `ekspert_id` IS NULL

Filename: models/Eksperci_model.php

Line Number: 46