An exception occurred

-----

array (
  'REDIRECT_STATUS' => '200',
  'HTTP_HOST' => 'www.greenbelt.org.uk',
  'HTTP_USER_AGENT' => 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)',
  'HTTP_ACCEPT' => 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;',
  'HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5',
  'HTTP_ACCEPT_ENCODING' => 'gzip',
  'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
  'HTTP_CONNECTION' => 'close',
  'HTTP_CACHE_CONTROL' => 'no-cache',
  'HTTP_PRAGMA' => 'no-cache',
  'PATH' => '/usr/local/bin:/usr/bin:/bin',
  'SERVER_SIGNATURE' => '
Apache Server at www.greenbelt.org.uk Port 80
', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.greenbelt.org.uk', 'SERVER_ADDR' => '89.200.136.69', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '38.103.63.55', 'DOCUMENT_ROOT' => '/home/www/current/public', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/www/current/public/lineupz.php', 'REMOTE_PORT' => '53861', 'REDIRECT_QUERY_STRING' => 'festival=2004&type=worship', 'REDIRECT_URL' => '/festival/2004/lineup/worship', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'festival=2004&type=worship', 'REQUEST_URI' => '/festival/2004/lineup/worship', 'SCRIPT_NAME' => '/lineupz.php', 'PHP_SELF' => '/lineupz.php', 'REQUEST_TIME' => 1231339418, 'argv' => array ( 0 => 'festival=2004&type=worship', ), 'argc' => 1, ) ----- Exception::__set_state(array( 'message' => '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 \') AND `gb_lineup_item_type`.`gb_lineup_type_id` = 3 AND `gb_lin\' at line 18', 'string' => '', 'code' => 0, 'file' => '/home/www/releases/20090106081755/app/models/base.php', 'line' => 31, 'trace' => array ( 0 => array ( 'file' => '/home/www/releases/20090106081755/app/models/lineup_item.php', 'line' => 558, 'function' => 'processMany', 'class' => 'GB_BaseModel', 'type' => '::', 'args' => array ( 0 => 'SELECT `gb_lineup_items`.`id`, `gb_festival_id`, `venue`, `day`, `gb_lineup_items`.`type`, `title`, `subtitle`, `gb_lineup_items`.`live_from`, `intro`, `gb_lineup_items`.`sidebar`, `ref`, `priority`, `gb_lineup_items`.`image`, `gb_lineup_items`.`links`, `gb_lineup_items`.`files`, `body`, `gb_artists`.`image` AS artist_image, `gb_lineup_items`.`portrait_thumbnail`, `gb_lineup_items`.`landscape_thumbnail`, `gb_artists`.`id` AS artist_id, `gb_artists`.`portrait_thumbnail` AS artist_portrait, `gb_artists`.`landscape_thumbnail` AS artist_landscape, `gb_artists`.`image` AS artist_image, `gb_artists`.`short_biog` AS artist_short_bio, `gb_artists`.`long_biog` AS artist_long_bio, `gb_lineup_items`.`updated_at` FROM `gb_lineup_item_type`, `gb_lineup_items`, `gb_lineup_links`, `gb_artists` WHERE `gb_lineup_links`.`lineup_id` = `gb_lineup_items`.`id` AND `gb_lineup_links`.`artist_id` = `gb_artists`.`id` AND `gb_artists`.`id` IN () AND `gb_lineup_item_type`.`gb_lineup_type_id` = 3 AND `gb_lineup_item_type`.`gb_lineup_item_id` = `gb_lineup_items`.`id` AND `gb_lineup_items`.`gb_festival_id` = 5 ORDER BY priority DESC', 1 => 'GB_LineupItem', ), ), 1 => array ( 'file' => '/home/www/releases/20090106081755/app/models/artist.php', 'line' => 119, 'function' => 'findByTypeAndFestivalForArtists', 'class' => 'GB_LineupItem', 'type' => '::', 'args' => array ( 0 => array ( ), 1 => GB_LineupType::__set_state(array( 'id' => '3', 'name' => 'Worship', 'icon' => '/system/images/story_thumbnails/Landscape/worship-landscape.jpg', 'permalink' => 'worship', 'priority' => '7', 'parent_path' => NULL, )), 2 => GB_Festival::__set_state(array( 'fields' => array ( 0 => 'id', 1 => 'starts_on', 2 => 'ends_on', 3 => 'theme', 4 => 'featured', ), 'featured' => '0', 'id' => '5', 'starts_on' => '2004-08-27', 'ends_on' => '2004-08-30', 'theme' => 'Freedom Bound', )), 3 => false, 4 => false, 5 => 'priority DESC', ), ), 2 => array ( 'file' => '/home/www/releases/20090106081755/public/lineupz.php', 'line' => 99, 'function' => 'findByTypeAndFestival', 'class' => 'GB_Artist', 'type' => '::', 'args' => array ( 0 => GB_LineupType::__set_state(array( 'id' => '3', 'name' => 'Worship', 'icon' => '/system/images/story_thumbnails/Landscape/worship-landscape.jpg', 'permalink' => 'worship', 'priority' => '7', 'parent_path' => NULL, )), 1 => GB_Festival::__set_state(array( 'fields' => array ( 0 => 'id', 1 => 'starts_on', 2 => 'ends_on', 3 => 'theme', 4 => 'featured', ), 'featured' => '0', 'id' => '5', 'starts_on' => '2004-08-27', 'ends_on' => '2004-08-30', 'theme' => 'Freedom Bound', )), 2 => false, 3 => false, ), ), ), )) ----- array ( 0 => array ( 'function' => 'custom_exception_handler', 'args' => array ( 0 => Exception::__set_state(array( 'message' => '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 \') AND `gb_lineup_item_type`.`gb_lineup_type_id` = 3 AND `gb_lin\' at line 18', 'string' => '', 'code' => 0, 'file' => '/home/www/releases/20090106081755/app/models/base.php', 'line' => 31, 'trace' => array ( 0 => array ( 'file' => '/home/www/releases/20090106081755/app/models/lineup_item.php', 'line' => 558, 'function' => 'processMany', 'class' => 'GB_BaseModel', 'type' => '::', 'args' => array ( 0 => 'SELECT `gb_lineup_items`.`id`, `gb_festival_id`, `venue`, `day`, `gb_lineup_items`.`type`, `title`, `subtitle`, `gb_lineup_items`.`live_from`, `intro`, `gb_lineup_items`.`sidebar`, `ref`, `priority`, `gb_lineup_items`.`image`, `gb_lineup_items`.`links`, `gb_lineup_items`.`files`, `body`, `gb_artists`.`image` AS artist_image, `gb_lineup_items`.`portrait_thumbnail`, `gb_lineup_items`.`landscape_thumbnail`, `gb_artists`.`id` AS artist_id, `gb_artists`.`portrait_thumbnail` AS artist_portrait, `gb_artists`.`landscape_thumbnail` AS artist_landscape, `gb_artists`.`image` AS artist_image, `gb_artists`.`short_biog` AS artist_short_bio, `gb_artists`.`long_biog` AS artist_long_bio, `gb_lineup_items`.`updated_at` FROM `gb_lineup_item_type`, `gb_lineup_items`, `gb_lineup_links`, `gb_artists` WHERE `gb_lineup_links`.`lineup_id` = `gb_lineup_items`.`id` AND `gb_lineup_links`.`artist_id` = `gb_artists`.`id` AND `gb_artists`.`id` IN () AND `gb_lineup_item_type`.`gb_lineup_type_id` = 3 AND `gb_lineup_item_type`.`gb_lineup_item_id` = `gb_lineup_items`.`id` AND `gb_lineup_items`.`gb_festival_id` = 5 ORDER BY priority DESC', 1 => 'GB_LineupItem', ), ), 1 => array ( 'file' => '/home/www/releases/20090106081755/app/models/artist.php', 'line' => 119, 'function' => 'findByTypeAndFestivalForArtists', 'class' => 'GB_LineupItem', 'type' => '::', 'args' => array ( 0 => array ( ), 1 => GB_LineupType::__set_state(array( 'id' => '3', 'name' => 'Worship', 'icon' => '/system/images/story_thumbnails/Landscape/worship-landscape.jpg', 'permalink' => 'worship', 'priority' => '7', 'parent_path' => NULL, )), 2 => GB_Festival::__set_state(array( 'fields' => array ( 0 => 'id', 1 => 'starts_on', 2 => 'ends_on', 3 => 'theme', 4 => 'featured', ), 'featured' => '0', 'id' => '5', 'starts_on' => '2004-08-27', 'ends_on' => '2004-08-30', 'theme' => 'Freedom Bound', )), 3 => false, 4 => false, 5 => 'priority DESC', ), ), 2 => array ( 'file' => '/home/www/releases/20090106081755/public/lineupz.php', 'line' => 99, 'function' => 'findByTypeAndFestival', 'class' => 'GB_Artist', 'type' => '::', 'args' => array ( 0 => GB_LineupType::__set_state(array( 'id' => '3', 'name' => 'Worship', 'icon' => '/system/images/story_thumbnails/Landscape/worship-landscape.jpg', 'permalink' => 'worship', 'priority' => '7', 'parent_path' => NULL, )), 1 => GB_Festival::__set_state(array( 'fields' => array ( 0 => 'id', 1 => 'starts_on', 2 => 'ends_on', 3 => 'theme', 4 => 'featured', ), 'featured' => '0', 'id' => '5', 'starts_on' => '2004-08-27', 'ends_on' => '2004-08-30', 'theme' => 'Freedom Bound', )), 2 => false, 3 => false, ), ), ), )), ), ), ) ----- array ( 'festival' => '2004', 'type' => 'worship', )