Skip to content
Snippets Groups Projects
Commit efc8b119 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix incorrect sql statement

in Client::getLastTicketIdByEmail()
parent 7c42d811
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ class Client {
/* ------------- Static ---------------*/
function getLastTicketIdByEmail($email) {
$sql='SELECT ticket.ticketID '.TICKET_TABLE.' ticket '
$sql='SELECT ticket.ticketID FROM '.TICKET_TABLE.' ticket '
.' LEFT JOIN '.USER_TABLE.' user ON user.id = ticket.user_id'
.' LEFT JOIN '.USER_EMAIL_TABLE.' email ON user.id = email.user_id'
.' WHERE email.address = '.db_input($email)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment