Fixes query that was fetching users based on the organisation_id in the user_data table to use the organisation_id from the appropriate user_access record