diff --git a/admin/manage_statuses.php b/admin/manage_statuses.php index 92fb65ef..13d9a4fd 100644 --- a/admin/manage_statuses.php +++ b/admin/manage_statuses.php @@ -645,7 +645,7 @@ function createStatus() { $my_order = $row[0]+10; // Get the next status id - $res = hesk_dbQuery("SELECT `ID` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` ORDER BY `Id` DESC LIMIT 1"); + $res = hesk_dbQuery("SELECT `ID` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` ORDER BY `ID` DESC LIMIT 1"); $row = hesk_dbFetchAssoc($res); $nextId = $row['ID'] + 1;