select 
groups.*,
groups.wgroupid NEXTID 

from  
groups 

where 
WGROUPID = <@KEY@>

