该程序通过sql语句进行查询,运行时报错‘circule datalinks not allowed'该如何修改
begin
  with datamodule2.Query1 do
 begin
 databasename:='laobao';
   datasource:=datamodule2.renyuands;
   close;
   sql.Clear;
   sql.add('select * from renyuan where bumenno=1');
   open;
 end;
   with datamodule2.renyuanTable do
   begin
   {active:=true; }
   databasename:='laobao';
   tablename:='renyuan.db';
   indexfieldnames:='zhigongno';
   mastersource:=datamodule2.queryDS;
   end;