Staff Query

got rid of all the errors in the query