The '%{func/}' function expects a column reference expression for argument '%d{arg/}', but a table reference expression was ...