$account = AccountTable::getInstance()->findOneByLoginIdAndStatus($login_id, "on"); $account = Doctrine::getTable("Account")->findOneByLoginIdAndStatus($login_id, "on"); $account = AccountTable::getInstance()->findOneBy(array('login_id' => $login_id, 'status' => "on")); $account = Doctrine::getTable("Account")->findOneBy(array('login_id' => $login_id, 'status' => "on")); $q = AccountTable::getInst