/* SQL Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL DEFAULT '0' AFTER `id`' at line 2 */
Here is alter code with table and field name changed:
ALTER TABLE `TableName`
ADD COLUMN `ColumnName` NULL DEFAULT '0' AFTER `id`;
MySQL Version: 5.5.34
HeidiSQL Version: 9.1.0.4873
Thank you.