Your SQL statement to truncate something is incorrect.
I clicked on DB -> Truncate DB
Result:
[6:04:24 PM][ 0 ms] delete from `devrat`.`category`
The SQL should be: truncate table 'devrat'.'category'
Truncate in every RDBMs that I know of resets the autonumber. Just deleting from the table does not reset the autonumber.
Also, Where's Truncate Table under Table -> ?
I would also recommending that if you're going to have a truncate command that you bring up a prompt that says, are yoooou sure? Are yoooou absolutely positive?