$value="1,2,3,4,5";
$condition['id'] = array('exp',' IN ('.$value.') '); $result=M('Product')->where($condition)->order(''.$value.'')->select();