Fixes invalid query for User Ids

[#73645574]