combine clause condition with bind values functionality