A PHP Error was encountered

Severity: Notice

Message: Undefined variable: id_advertise

Filename: controllers/archive.php

Line Number: 84

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 438

Database Error

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 start_date <= NOW() and expired_date >= NOW()' at line 3

SELECT COUNT(*) AS `numrows` FROM (`advertise_detail`) WHERE `adv_main_id` = and start_date <= NOW() and expired_date >= NOW()

Filename: /home/admcbn/public_html/core/MY_Model.php

Line Number: 386