Error in query numbers