function _fetch_mesg($mesgid){ if( ! isset($this->STH_FETCH_MESG) ){ $this->STH_FETCH_MESG = $this->DBH->prepare(" SELECT *, DATEDIFF(NOW(), mesgdate) as age FROM $this->TABN WHERE mesgid=?"); } $this->STH_FETCH_MESG->execute(array($mesgid)); $mesg = $this->STH_FETCH_MESG->fetchAll(); if( empty($mesg) ){ dd("Diese Nachricht existiert nicht!"); } return $mesg[0]; }