A PHP Error was encountered

Severity: Notice

Message: Undefined index: start_date

Filename: models/event_model.php

Line Number: 47

A PHP Error was encountered

Severity: Notice

Message: Undefined index: event_id

Filename: models/event_model.php

Line Number: 49

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 `status` = 1 AND `event_id` != ORDER BY `start_date` DESC, `start_time` DES' at line 4

SELECT `event_id`, `name` FROM (`event`) WHERE `start_date` <= AND `status` = 1 AND `event_id` != ORDER BY `start_date` DESC, `start_time` DESC LIMIT 1

Filename: /home/spd/www/www/front-modules/events/models/event_model.php

Line Number: 53