Removed all dependancy related to nid and nid-arg. Also build new where query.
Removed all dependancy related to nid and nid-arg. Also build new where query.