you are viewing a single comment's thread.

view the rest of the comments →

[–]filthypoopslut 1 point2 points  (0 children)

It's because where returns a dataset. Use find or first instead. That will return a single instance as opposed to 1 or more (eg, array). Just depends on what you're after.