Hi guys,
This is a reasonably straightforward SQL query that I'm trying to get running with ORM, but no luck....
SELECT * FROM `nodes` WHERE `status` = 'published' AND (`nodetype_id` = 1 OR `nodetype_id` = 3 OR `nodetype_id` = 4)
ORDER BY published_at DESC LIMIT 14
Would any of you know how to do this?
This is where I'm at....
$nodes = Model_Node::find('all', array(
'where' => array(
array('status', '=', 'published'),
array('nodetype_id', '=', 1), //<--- Get lost here...
),
'order_by' => array('published_at' => 'desc'),
'limit' => 14,
));
Thanks in advance,
Leonard