_db -> query("SELECT 'error' as 'tipo',msg as 'text',id FROM `error_log` WHERE state = '1'"); return $stmt -> fetchAll(); } public function getNotifyList(){ $stmt = $this -> _db -> query("SELECT 'error' as 'tipo',id,notify FROM `error_log` WHERE state = '1' AND notify = '0'"); return $stmt -> fetchAll(); } }