I have a query like:
SELECT _threads.*, _messages.*
FROM _threads
LEFT JOIN _messages
ON _threads.thread_id = _messages.message_thread_id
WHERE _threads.thread_servicer_id = 'jG5s2b6TRs'
GROUP BY _threads.thread_customer_id
Which returns something like:

How can i modify the query to be able to group by thread_customer_id THEN order by message_time and only pick the row with the latest message_time.
Prequery the threads/messages grouped by customer and get the max posting time per your servicer ID filter. From that, it will return a single customer/datetime. THEN, back-join it back to the messages table AGAIN, but only for the matched date/time, then to the thread that matches your servicer ID.. just in case the slim chance of exact same date/time posting of multiple messages under different servers