А так?
PHP код:
static void JobRec(Args _args)
{
taxOnItem taxOnItem;
taxGroupData taxGroupData;
taxTable taxTable;
;
while select RecId,TaxCode from taxOnItem
where taxOnItem.TaxItemGroup == 'НДС18'
join RecId,TaxCode from taxGroupData
where taxGroupData.TaxCode == taxOnItem.TaxCode &&
taxGroupData.TaxGroup == ''
join RecId from taxTable
where taxTable.TaxCode == taxGroupData.TaxCode
{
info('123');
}
}