fix the tickets view displaying no tickets on a mysql db (the fix already exists in the 2.3 branch)