A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: controllers/Placowka.php

Line Number: 11

Backtrace:

File: /home/mojsik/domains/opinieolekarzach.pl/public_html/_application/controllers/Placowka.php
Line: 11
Function: _error_handler

File: /home/mojsik/domains/opinieolekarzach.pl/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/mojsik/domains/opinieolekarzach.pl/public_html/_system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 573

Backtrace:

File: /home/mojsik/domains/opinieolekarzach.pl/public_html/_application/models/Placowka_model.php
Line: 264
Function: query

File: /home/mojsik/domains/opinieolekarzach.pl/public_html/_application/controllers/Placowka.php
Line: 17
Function: getDoctorsSpecializations

File: /home/mojsik/domains/opinieolekarzach.pl/public_html/index.php
Line: 315
Function: require_once

Database Error

Wystąpił błąd bazy danych.

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 '? GROUP BY s.id' at line 3

SELECT s.id, s.name FROM specializations s LEFT JOIN doctors_has_specializations dhs ON dhs.specializations_id = s.id LEFT JOIN doctors_in_objects dio ON dio.doctors_id = dhs.doctors_id WHERE dio.objects_id = ? GROUP BY s.id

Filename: models/Placowka_model.php

Line Number: 264