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 'AND et.evt_topic_status=1 AND et.evt_topic_active=1 AND t.topic_status = 1 AN...' at line 1

select DISTINCT(t.topic_id) from event_topic et LEFT JOIN topic t ON t.topic_id=et.topic_id where et.evt_id= AND et.evt_topic_status=1 AND et.evt_topic_active=1 AND t.topic_status = 1 AND t.topic_active = 1

Filename: models/mod_events.php

Line Number: 118

select DISTINCT(t.topic_id) from event_topic et LEFT JOIN topic t ON t.topic_id=et.topic_id where et.evt_id= AND et.evt_topic_status=1 AND et.evt_topic_active=1 AND t.topic_status = 1 AND t.topic_active = 1

FileLine Number
/home/nara/public_html/system/core/Exceptions.php146
/home/nara/public_html/system/database/DB_driver.php1197
/home/nara/public_html/system/database/DB_driver.php328
/home/nara/public_html/system/database/drivers/mysqli/MY_DB_mysqli_driver.php166
/home/nara/public_html/system/database/drivers/mysqli/MY_DB_mysqli_driver.php49
/home/nara/public_html/application/models/mod_events.php118
/home/nara/public_html/application/controllers/events.php1014
/home/nara/public_html/system/core/CodeIgniter.php359
/home/nara/public_html/index.php249