fixed query syntax