SELECT * FROM `(TABLE PREFIX)`.`thread` WHERE ( `title` LIKE '%a%' ) LIMIT 0 , 30
$itemcount = $db->query_first(" SELECT COUNT(`uid`) AS `itemcount` FROM `" . TABLE_PREFIX . "thread` WHERE title LIKE '" . $letter . "%'");