function getFromDBForTarget($notifications_id, $type, $ID) { if ($this->getFromDBByQuery("WHERE `" . $this->getTable() . "`.`notifications_id` = '{$notifications_id}'\n AND `" . $this->getTable() . "`.`items_id` = '{$ID}'\n AND `" . $this->getTable() . "`.`type` = '{$type}'")) { return true; } return false; }