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

Query time 0.00026

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