我有一个要在查询中使用的数组:
Array ( [0] => stdClass Object ( [followee] => 267,269,270,271,272,273,275,276,277,278,279 ) )
我不确定它为什么返回消息:
Object of class stdClass could not be converted to string.
控制器:
$data['activity'] = $this->home_model->activity($followID);
模型:
function activity($followID)
{
$query_str = 'SELECT DISTINCT name
FROM place
WHERE userid IN ("'. implode('","', $followID) .'")';
$query = $this->db->query($query_str);