In order to use the example here, you need to create a table, just execute the following SQL lines using your MySQL client: --------------------------------------------------------------------- CREATE TABLE `quickdbtest` ( `catid` int(11) NOT NULL auto_increment, `catname` varchar(255) default NULL, PRIMARY KEY (`catid`) ); insert into `quickdbtest`(`catid`,`catname`) values (1,'Big'),(2,'Small'),(3,'Average'),(4,'Light'),(5,'Huge');