A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/gatepassnet/public_html/application/controllers/Gatepass.php:5423)

Filename: core/Common.php

Line Number: 564

Backtrace:

An uncaught Exception was encountered

Type: mysqli_sql_exception

Message: 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 Month(insertDate) = '01' order by id desc' at line 3

Filename: /home/gatepassnet/public_html/system/database/drivers/mysqli/mysqli_driver.php

Line Number: 307

Backtrace:

File: /home/gatepassnet/public_html/application/models/GatepassDB.php
Line: 2796
Function: get

File: /home/gatepassnet/public_html/application/controllers/Gatepass.php
Line: 5510
Function: fetchGatePassHostMonthWithYearDetails

File: /home/gatepassnet/public_html/index.php
Line: 316
Function: require_once