sequelize/sequelize — pull request #2124 by ryanpon (2014-08-06 23:47:22+00:00)
Title: fix {where: []} causing finds to crash if model is paranoid

In cases where the model is paranoid and the where is an empty array, the paranoid clause function would attempt to call .indexOf(...) on the first element of that empty array, causing a type error.