SELECT `a`.*, `b`.`type` as `contract_type`, `c`.`type` as `confirmation_type`, `d`.`action_efective_date`, `e`.`type` as `action_type`
FROM `user__contract_element` `a`
JOIN `_ref__contract_type` `b` ON `b`.`id` = `a`.`contract_hiring_type_id`
JOIN `_ref__contract_confirmation` `c` ON `c`.`id` = `a`.`confirmation`
LEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`
LEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`
WHERE `a`.`user_id` = '45'
AND `a`.`is_delete` =0