SELECT 
  role_system, 
  role_user, 
  role_assistant 
FROM 
  cscart_pw_chat_gpt_sessions_chat 
WHERE 
  session = 'ec1613c99c2bb7aeec79948bb9cbf4' 
order by 
  id desc 
LIMIT 
  5

Query time 0.00036

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_pw_chat_gpt_sessions_chat index PRIMARY 4 5 Using where