DONE!from line 65 select the last note from st_note (change st_note with your DB suffix example your_note)$select .= ', count(DISTINCT ticket.ticket_id) as tickets ';$select .= ', st_note.body as ultimanota ';$from .= ' LEFT JOIN '.TICKET_TABLE.' ticket ON (ticket.user_id = user.id and ticket.status!="closed") ';$from .= ' LEFT JOIN st_note ON st_note.id =( SELECT b.id FROM st_note AS b WHERE b.ext_id = concat(\'U\',user.id) ORDER by b.id DESC limit 1) ';line 136 (more or less): show the first 30 chars of the last note $status = substr($row,0,30)."...";