ALTER TABLE `displays` ADD `perpage` INT NOT NULL DEFAULT '5' AFTER `allorders`;

INSERT INTO `tabledefs` (`defid`, `tablename`, `settingname`, `actualfield`, `datatype`, `fielddescription`, `isid`, `showintable`, `editable`, `ordinality`, `sqlquery`, `relationshiptable`, `displaysql`, `defaultvalue`) VALUES (NULL, 'displays', 'Tickets Per Page', 'perpage', 'number', 'How many tickets displayed per page?', '0', '1', '1', '50', '', '', '', '5');