query problem fixed

had the wrong table name in a query.