Very much thanks for your help Rudy!
CREATE TABLE category
(
catID
int(10) unsigned NOT NULL AUTO_INCREMENT,
name
mediumtext NOT NULL,
parent
int(10) NOT NULL,
created
datetime NOT NULL,
PRIMARY KEY (catID
),
KEY parent
(parent
)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8;
INSERT INTO category
VALUES
(29,‘new mile’,0,‘2011-03-23 05:05:07’),
(33,‘sdfds’,29,‘2011-03-23 05:10:31’),
(34,‘2nd mile’,0,‘2011-03-23 05:48:18’),
(35,‘3rd mile’,0,‘2011-03-23 05:49:46’),
(36,‘3rd mile task’,35,‘2011-03-23 05:49:54’),
(37,‘4th mile’,0,‘2011-03-23 05:51:38’),
(38,‘4th task’,37,‘2011-03-23 05:51:44’),
(39,‘new new task!’,29,‘2011-03-23 08:05:11’),
(40,‘fdsf’,29,‘2011-03-23 08:11:25’),
(41,‘sdfsdf’,29,‘2011-03-23 08:12:00’),
(42,‘dff’,29,‘2011-03-23 08:12:52’),
(43,‘jhg’,29,‘2011-03-23 08:17:40’),
(44,‘tyu’,29,‘2011-03-23 08:17:56’),
(45,‘dsfdsf’,29,‘2011-03-23 08:18:07’),
(46,‘gfhfgh’,34,‘2011-03-23 08:18:25’),
(47,‘ok mile!’,0,‘2011-03-23 08:27:11’),
(48,‘okok task!’,47,‘2011-03-23 08:27:21’);