public static function singleValue($query, $key, $strict = true) { $result = MySqlQuery($query); $row = mysql_fetch_assoc($result); mysql_free_result($result); if (!isset($row[$key]) && $strict == true) { CMmbLogger::w('singleValue', "Field '{$key}' doesn't exist, query:\n" . trim($query)); } return $row[$key]; }