SELECT CONCAT(`notes`.`date_entered`, '~', `users`.`user_name`, '~', `notes`.`description`) as note FROM `notes`
Join `accounts` on
`notes`.`parent_id` = `accounts`.`id`
join
`users` on
`notes`.`created_by` = `users`.`id`
where `notes`.`parent_id` = 2 and `notes`.`parent_type` = 'Accounts' and `notes`.`deleted` = 0 order by `notes`.`date_entered` DESC