Fixed my code by altering data model 'favorite' - removed search_id