A PHP Error was encountered

Severity: Notice

Message: Undefined variable: data

Filename: models/cities.php

Line Number: 28

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /data/www/virtuals/cityspy247/html/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 442

Database Error

A Database Error Occurred

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 ((from_ >= '2017-08-20 00:00:00' and from_ < '2017-08-21 00:00:00') or ' at line 1

select * from mp_esemenyek where city_id= and ((from_ >= '2017-08-20 00:00:00' and from_ < '2017-08-21 00:00:00') or (from_ <= '2017-08-20 00:00:00' and till >= '2017-08-21 00:00:00')) and (aktiv='Yes') order by helyezes

Filename: /data/www/virtuals/cityspy247/html/models/calendar_model.php

Line Number: 28