fixed an issues for passing blank array in sql IN() syntax