Fixed bug with where_in statements.