Hi,
> Modified nas_query:
>        {"nas_query", PW_TYPE_STRING_PTR,
>         offsetof(SQL_CONFIG,nas_query), NULL, "SELECT 
> id,nasname,shortname,type,secret,server FROM nas"},
> rebuild the server.
huh? thats the default query in the code - if you
edit sql.conf and modify nas_query in the config
it will do the required task.
alan