Zapytanie SQL do CI Query Builder online
select('users.designation_id,users.guid, users_org_mapping.user_id,users.active,
roles.title AS role,users_org_mapping.role_id,users.display_name,organizations.name,
organizations.status,users.session,users_org_mapping.organization_id,users.created_on,users.wallet_model')
->join('users','users.id=users_org_mapping.user_id','inner')
->join('musers', 'users.guid=md5(musers.id)', 'inner')
->join('roles', 'roles.id=users_org_mapping.role_id', 'inner')
->join('organizations', 'organizations.id=users_org_mapping.organization_id', 'inner')
->where('musers.username',$username_decrpt,FALSE)
->find_all();
Pranay Akhand