Add getWhere function to get a single object based on an arbitrary where clause