public static function getByChannel($channel) { $conversations = array(); if (is_object($channel)) { $conversations = Conversation::find_by_sql("SELECT * FROM conversations WHERE members_ids LIKE '%;" . $channel->id . ";%'"); } return $conversations; }