bug fix to mark overdue tickets with no SLA plan 

SQL was not correct: if a ticket had a duedate but no SLA plan, it was not included in the results and system did not mark it as overdue after duedate.