_isPublisher()) { $this->_addPublisher(); } try { $stmt = $this->PDO->prepare("INSERT INTO p_report (id_inst) VALUES (:id_publisher)"); $stmt->execute(array('id_publisher' => $this->publisher_id)); $master_id = $this->PDO->lastInsertId(); return $master_id; } catch (exception $ex) { common::except ('Err: ' .$ex .' in ' .__DIR__ .'/' .__FILE__ .':' .__LINE__); } return false; } }