Fix incorrect sql statement

in Client::getLastTicketIdByEmail()