>Check all your begin-select and begin-sql make sure there is a corresponding >end-select or end-sql. Also check all your joins. You may have a Cartesian join someplace.