I have same error:
DB Error #3024
[SELECT A1.ticket_id
, A1.ticket_pid
, A1.number
, A1.user_id
, A1.user_email_id
, A1.status_id
, A1.dept_id
, A1.sla_id
, A1.topic_id
, A1.staff_id
, A1.team_id
, A1.email_id
, A1.lock_id
, A1.flags
, A1.sort
, A1.ip_address
, A1.source
, A1.source_extra
, A1.isoverdue
, A1.isanswered
, A1.duedate
, A1.est_duedate
, A1.reopened
, A1.closed
, A1.lastupdate
, A1.created
, A1.updated
, A3.topic_id
, A3.topic_pid
, A3.ispublic
, A3.noautoresp
, A3.flags
, A3.status_id
, A3.priority_id
, A3.dept_id
, A3.staff_id
, A3.team_id
, A3.sla_id
, A3.page_id
, A3.sequence_id
, A3.sort
, A3.topic
, A3.number_format
, A3.notes
, A3.created
, A3.updated
, A4.staff_id
, A4.dept_id
, A4.role_id
, A4.username
, A4.firstname
, A4.lastname
, A4.passwd
, A4.backend
, A4.email
, A4.phone
, A4.phone_ext
, A4.mobile
, A4.signature
, A4.lang
, A4.timezone
, A4.locale
, A4.notes
, A4.isactive
, A4.isadmin
, A4.isvisible
, A4.onvacation
, A4.assigned_only
, A4.show_assigned_tickets
, A4.change_passwd
, A4.max_page_size
, A4.auto_refresh_rate
, A4.default_signature_type
, A4.default_paper_size
, A4.extra
, A4.permissions
, A4.created
, A4.lastlogin
, A4.passwdreset
, A4.updated
, A5.id
, A5.org_id
, A5.default_email_id
, A5.status
, A5.name
, A5.created
, A5.updated
, A6.team_id
, A6.lead_id
, A6.flags
, A6.name
, A6.notes
, A6.created
, A6.updated
, A7.id
, A7.pid
, A7.tpl_id
, A7.sla_id
, A7.schedule_id
, A7.email_id
, A7.autoresp_email_id
, A7.manager_id
, A7.flags
, A7.name
, A7.signature
, A7.ispublic
, A7.group_membership
, A7.ticket_auto_response
, A7.message_auto_response
, A7.path
, A7.updated
, A7.created
, A8.id
, A8.schedule_id
, A8.flags
, A8.grace_period
, A8.name
, A8.notes
, A8.created
, A8.updated
, B0.id
, B0.object_id
, B0.object_type
, B0.extra
, B0.lastresponse
, B0.lastmessage
, B0.created
, B1.id
, B1.object_id
, B1.object_type
, B1.extra
, B1.lastresponse
, B1.lastmessage
, B1.created
, B2.id
, B2.user_id
, B2.flags
, B2.address
, A2.id
, A2.name
, A2.state
, A2.mode
, A2.flags
, A2.sort
, A2.properties
, A2.created
, A2.updated
FROM ost_ticket
A1 JOIN ost_ticket_status
A2 ON (A1.status_id
= A2.id
) LEFT JOIN ost_help_topic
A3 ON (A1.topic_id
= A3.topic_id
) LEFT JOIN ost_staff
A4 ON (A1.staff_id
= A4.staff_id
) LEFT JOIN ost_user
A5 ON (A1.user_id
= A5.id
) LEFT JOIN ost_team
A6 ON (A1.team_id
= A6.team_id
) LEFT JOIN ost_department
A7 ON (A1.dept_id
= A7.id
) LEFT JOIN ost_sla
A8 ON (A1.sla_id
= A8.id
) LEFT JOIN ost_thread
B0 ON (B0.object_type
= 'T' AND A1.ticket_id
= B0.object_id
) LEFT JOIN ost_thread
B1 ON (A1.ticket_id
= B1.object_id
AND B1.object_type
= 'C') LEFT JOIN ost_user_email
B2 ON (A5.default_email_id
= B2.id
) WHERE A1.isoverdue
= 0 AND A2.state
= 'open' AND ((A1.duedate
IS NULL AND A1.est_duedate
IS NOT NULL AND A1.est_duedate
---- Backtrace ----
#0 (root)/include/mysqli.php(201): osTicket->logDBError()
#1 (root)/include/class.orm.php(3466): db_query()
#2 (root)/include/class.orm.php(3522): MySqlExecutor->execute()
#3 (root)/include/class.orm.php(1999): MySqlExecutor->getRow()
#4 (root)/include/class.orm.php(2043): ModelInstanceManager->{closure}()
#5 (root)/include/class.orm.php(2022): CallbackSimpleIterator->next()
#6 (root)/include/class.orm.php(2031): CallbackSimpleIterator->rewind()
#7 (root)/include/class.orm.php(1703): CallbackSimpleIterator->valid()
#8 (root)/include/class.orm.php(1713): CachedResultSet->fillTo()
#9 (root)/include/class.orm.php(1729): CachedResultSet->asArray()
#10 (root)/include/class.ticket.php(4685): CachedResultSet->getIterator()
#11 (root)/include/class.cron.php(30): Ticket::checkOverdue()
#12 (root)/include/class.cron.php(111): Cron::TicketMonitor()
#13 (root)/include/api.cron.php(19): Cron::run()
#14 (root)/include/api.cron.php(40): CronApiController->run()
#15 (root)/api/cron.php(23): LocalCronApiController::call()
#16 {main}
but this happens middle of the night when noone was working...