error in query, fixed