Query 4150Q arises when a Teacher Number has been added to a staff profile, but does not contain the correct number of digits. Click on the Query to take you to the staff member's profile, then click on the cog next to the staff member's name. This opens up the Personal Details page:
You will see here that only 5 digits are in the Teacher Number box, when there ought to be 7 or 8 digits. Amend the information, and then click Submit at the base of the page to save the data. Return to the Workforce Census area to recalculate your Census.