That is not trivial.You would first look up the ticket_id in ost_ticket.Then you would look up all responses in ticket_thread based on that #=ticket_id.So if your ticket_id was say 100 then something like:SELECT created FROM ost_ticket_thread WHERE ticket_id='100' ORDER BY 'created' LIMIT 1, 1;