$mp = new MyPDO();$sql = "select * from contact where uid=?";$contact = $mp->objectByPdoPrepare($sql,array($uid),'Contact');