I'm receiving the following error:
Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2227 of includes/database/database.inc).
I've narrowed it down to this code but I am still able see what is wrong with the code, it worked before but now I am getting this recurring error.
case 'field_home' : $tids = field_get_items('node', $node, $key, $node->language); $terms = taxonomy_term_load_multiple(array(), array('tid' => $tids)); // Gets Field Array Based on Term IDs $name = array(); foreach($terms as $term){ $name[] = $term->name;} $return[$key_clean] = $name;