Kohana 3.1 ORM: How to make 'where … in' clause
问题 Thanks to Kohana's excellent documentation, I'm having to resort to prostrate myself on SO. ;) Hopefully this is really simple: I'm trying to gather all stories which belong to a certain group of IDs. My code is as follows: $story_ids = '(12,56,99,213,319)'; $stories = ORM::factory('story')->where('id', 'IN', $story_ids)->find_all(); However, this is obviously not working. I'm getting a MySQL error because single-quotes are being put around the $story_ids string in the query. EDIT: I've also