	static public function getHighestOrderNumber($_uid = 0)
	{
		$where = '';
		$sel_data = array();
		if ($_uid > 0) {
			$where = " WHERE `adminid` = :adminid";
			$sel_data['adminid'] = $_uid;
		}
		$sql = "SELECT MAX(`logicalorder`) as `highestorder` FROM `" . TABLE_PANEL_TICKET_CATS . "`" . $where . ";";
		$result_stmt = Database::prepare($sql);
		$result = Database::pexecute_first($result_stmt, $sel_data);
		return (isset($result['highestorder']) ? (int) $result['highestorder'] : 0);
	}
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.