Fix incorrect sql statement

in Client::getLastTicketIdByEmail()
Merge pull request #46 from greezybacon/issue/bad-sql

Fix incorrect sql statement

Reviewed-By: Peter Rotich <peter@osticket.com>