fix sql query params positioning
improved by_group_name
META