3 'obtener_perfil_usuario' => 'SELECT psu.login AS login, psu.id_perfil AS id_perfil, psu.id_sistema AS id_sistema
4 FROM perfil_sist_usuario AS psu
5 WHERE login = ? AND id_sistema = ?
6 ORDER BY id_perfil DESC',
7 'obtener_permisos_perfil' => 'SELECT e.desc_permiso AS desc_permiso
8 FROM perm_perfil_sist AS pps, permiso AS e
9 WHERE pps.id_perfil = ? AND pps.id_sistema = ? AND pps.id_permiso = e.id_permiso
10 ORDER BY e.id_permiso DESC'