$return = Model_Products::find('all', array( 'related' => array( 'categories', 'marks', 'variants' => array( 'where' => array( array( 'variants.active', 1 ), ), //'order_by' => array( 't0.id' => 'desc' ) ) ), 'where' => array( array( 'active', '=', 1 ), array( 'category_id', 'IN', Model_Products::categories_in($category_id) ), ), 'limit' => $limit, 'offset' => $offset, 'order_by' => array( 'id' => 'desc' ) ));
It looks like you're new here. If you want to get involved, click one of these buttons!