$query = Model_Blog::find()->related('categories')->where(array('categories.id', 'in', array(2,3));
// Returns 2, as expected
$query->count();
// Returns only the first blog post, because it belongs to 2 categories and the limit applies to them, which is frustrating
$query->rows_offset(0)->rows_limit(2);
It looks like you're new here. If you want to get involved, click one of these buttons!