If conditions are not there dont try to build the query