CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`person_user_idtrabajador` AS SELECT `t`.`Id_Trabajador` AS `Id_Trabajador` FROM ( `vn2008`.`person_user` `p` JOIN `vn2008`.`Trabajadores` `t` ON(`p`.`id` = `t`.`user_id`) ) WHERE `t`.`user_id` = `account`.`myUser_getId`()