As the max ID being allowed is 255 this almost cetainly means that your ID column has a data type of - "TINYINT UNSIGNED".
Change the column type to "INT UNSIGNED" and all will be ok.
Here is the SQL statement -
"ALTER TABLE post
CHANGE ID ID INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY"
Hope this helps 😉