diff --git a/application/Voicenumberblock/VoicenumberblockModel.php b/application/Voicenumberblock/VoicenumberblockModel.php index cb0570f01..511ba325f 100644 --- a/application/Voicenumberblock/VoicenumberblockModel.php +++ b/application/Voicenumberblock/VoicenumberblockModel.php @@ -90,9 +90,11 @@ class VoicenumberblockModel { $db = FronkDB::singleton(); $where = self::getSqlFilter($filter); - mfLoghandler::singleton()->debug($where); - //mfLoghandler::singleton()->log->debug($where); - $res = $db->select("Voicenumberblock", "*", "$where ORDER BY countrycode, areacode, first, last"); + $sql = "SELECT * FROM Voicenumberblock + WHERE $where + ORDER BY countrycode, areacode, first, last"; + + $res = $db->query($sql); if(is_array($limit) && count($limit)) { if(is_numeric($limit['start']) && is_numeric($limit['count'])) { @@ -102,6 +104,8 @@ class VoicenumberblockModel { } } + mfLoghandler::singleton()->debug($sql); + if($db->num_rows($res)) { while($data = $db->fetch_object($res)) { $items[] = new Voicenumberblock($data);