What are you doing / what page are you on that throws you that error?
If you are trying to delete a row in your database then the SQL syntax is wrong in that you are not supplying a row number ie "ticket_id=352". Note the lack of a number in your example.