'ant_popover_email', 'primary' => 'id_ant_popover', 'fields' => array( 'email' => array( 'type' => ObjectModel::TYPE_STRING, 'required' => TRUE, 'validate' => 'isEmail' ), 'date_add' => array( 'type' => ObjectModel::TYPE_STRING, ) ) ); public static function getByEmail($email){ return Db::getInstance()->getValue('SELECT COUNT(*) FROM `'._DB_PREFIX_.'ant_popover_email` WHERE `email` LIKE \''.$email.'\''); } }