Hello,I have created custom form which is editable by agents. This is pickup list with two values:- problem- request I need it for statistic reasons.Could You tell me how can I join that values with ticket id?I use quite simple form to get data from database. But I can't find how to match that value from and I need to add column Ticket_TYPE with value problem or request.Select Distinct ost_ticket.ticket_id As TicketNumber, ost_user.name As Client, ost_department.name As Departament, ost_staff.username As Staff, ost_ticket.source As Source, ost_ticket.created As DataOn, ost_ticket.duedate As DueDate, ost_ticket.closed As ClosedDate, "" AS Delay, ost_ticket_status.name AS Status, ost_help_topic.topic As HelpTopics, ost_ticket__cdata.subject As Subject, ost_help_topic.notes As InfoFrom ost_ticket Join ost_staff On ost_staff.staff_id = ost_ticket.staff_id Join ost_department On ost_ticket.dept_id = ost_department.id Join ost_user_email On ost_ticket.user_id = ost_user_email.user_id Join ost_user On ost_user_email.id = ost_user.id Join ost_ticket__cdata On ost_ticket.ticket_id = ost_ticket__cdata.ticket_id Join ost_ticket_status On ost_ticket.status_id = ost_ticket_status.idInner Join ost_help_topic On ost_ticket.topic_id = ost_help_topic.topic_idWHERE ost_ticket.created BETWEEN '2018-04-25 00' AND '2018-04-25 23'