ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2845): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(652): KRec->sql_escape(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(685): KRec->where_clause(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(714): KRec->from_db_sql(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2845): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(652): KRec->sql_escape(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(685): KRec->where_clause(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(714): KRec->from_db_sql(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2845): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(652): KRec->sql_escape(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(685): KRec->where_clause(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(714): KRec->from_db_sql(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Unable to connect. SQL error=, error number=, SQL statement=
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2845): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(652): KRec->sql_escape(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(685): KRec->where_clause(0 => NULL)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(714): KRec->from_db_sql(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(22): KRec->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2278): SwingUser->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(26): KRec->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(727): SwingUser->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(22): KRec->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2278): SwingUser->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(26): KRec->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(727): SwingUser->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(22): KRec->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2278): SwingUser->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(26): KRec->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(727): SwingUser->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL )
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(22): KRec->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2278): SwingUser->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(26): KRec->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(727): SwingUser->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL )
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(22): KRec->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2278): SwingUser->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(26): KRec->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(727): SwingUser->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Query failed; error='' (), SQL='SELECT * FROM swing_users WHERE ( `id` IS NULL )' SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL )
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT * FROM swing_users WHERE ( `id` IS NULL )' SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT * FROM swing_users WHERE ( `id` IS NULL )' SQL error=, error number=, SQL statement=SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT * FROM swing_users WHERE ( `id` IS NULL )')
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(22): KRec->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2278): SwingUser->select_all_rows(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ), return_after_first => 1)
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(26): KRec->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(727): SwingUser->select_one_row(sql => SELECT * FROM swing_users WHERE ( `id` IS NULL ))
/usr/www/users/kmoser/swing/swing-inc/SwingUser.inc.php(8): KRec::from_db(0 => NULL, 1 => SwingUser)
/usr/www/users/kmoser/swing/events/index.php(39): SwingUser::from_db(0 => NULL)
ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(930): SwingEvent::retrieve_matching_events(dt_start => , dt_end => )
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(930): SwingEvent::retrieve_matching_events(dt_start => , dt_end => )
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(930): SwingEvent::retrieve_matching_events(dt_start => , dt_end => )
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-04-02"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-05-02"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(930): SwingEvent::retrieve_matching_events(dt_start => , dt_end => )
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-04-02"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-05-02"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(930): SwingEvent::retrieve_matching_events(dt_start => , dt_end => )
ERROR: Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-04-02"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-05-02"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-04-02"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-05-02"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC')
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(930): SwingEvent::retrieve_matching_events(dt_start => , dt_end => )
ERROR: Error selecting events.
Stack trace follows:
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(806): KError::log_error(0 => Error selecting events.)
/usr/www/users/kmoser/swing/events/index.php(930): SwingEvent::retrieve_matching_events(dt_start => , dt_end => )
ERROR: Error retrieving matching events: SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-04-02"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-05-02"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/events/index.php(932): KError::log_error(0 => Error retrieving matching events: SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-04-02" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-05-02" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
South Florida Swing, Lindy Hop, and Blues: classes and social dancing

South Florida Swing

East Coast Swing • West Coast Swing • Lindy Hop • Blues
Lessons • Social Dancing • Live Music

in Martin, Palm Beach, Broward, and Dade Counties

Calendar

ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(1781): SwingEvent::retrieve_matching_events(offers => NULL, venue_types => NULL, lat => NULL, lon => NULL, zip => NULL, city => NULL, radius => NULL, dt_start => , dt_end => )
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(1781): SwingEvent::retrieve_matching_events(offers => NULL, venue_types => NULL, lat => NULL, lon => NULL, zip => NULL, city => NULL, radius => NULL, dt_start => , dt_end => )
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(1781): SwingEvent::retrieve_matching_events(offers => NULL, venue_types => NULL, lat => NULL, lon => NULL, zip => NULL, city => NULL, radius => NULL, dt_start => , dt_end => )
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-02-01"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-03-31"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(1781): SwingEvent::retrieve_matching_events(offers => NULL, venue_types => NULL, lat => NULL, lon => NULL, zip => NULL, city => NULL, radius => NULL, dt_start => , dt_end => )
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-02-01"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-03-31"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(1781): SwingEvent::retrieve_matching_events(offers => NULL, venue_types => NULL, lat => NULL, lon => NULL, zip => NULL, city => NULL, radius => NULL, dt_start => , dt_end => )
ERROR: Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-02-01"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-03-31"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-02-01"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-03-31"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC')
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(29): KRec->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(804): SwingEvent->select_all_rows(0 => swing_events.id, 1 => swing_events.venue_id, 2 => swing_bands.id AS band_id, 3 => DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, 4 => swing_bands.name AS band_name, 5 => swing_events.when_type, 6 => swing_events.weekdays, 7 => swing_events.start_when, 8 => swing_events.end_when, 9 => swing_events.time, 10 => swing_events.time_start, 11 => swing_events.time_end, 12 => swing_events.repeats, 13 => swing_venues.venue_type, 14 => swing_venues.name AS venue_name, 15 => swing_venues.name_short AS venue_name_short, 16 => swing_venues.address AS address, 17 => swing_venues.city AS city, 18 => swing_venues.state AS state, 19 => swing_venues.zip AS zip, 20 => swing_venues.lat AS lat, 21 => swing_venues.lon AS lon, 22 => swing_venues.phone AS phone, 23 => COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, 24 => swing_venues.map_url AS map_url, 25 => COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, 26 => COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, 27 => COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, 28 => COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, 29 => COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, 30 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, 31 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, 32 => IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, 33 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, 34 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, 35 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, 36 => IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, 37 => NULL AS distance, 38 => GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, 39 => GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions)
/usr/www/users/kmoser/swing/events/index.php(1781): SwingEvent::retrieve_matching_events(offers => NULL, venue_types => NULL, lat => NULL, lon => NULL, zip => NULL, city => NULL, radius => NULL, dt_start => , dt_end => )
ERROR: Error selecting events.
Stack trace follows:
/usr/www/users/kmoser/swing/swing-inc/SwingEvent.inc.php(806): KError::log_error(0 => Error selecting events.)
/usr/www/users/kmoser/swing/events/index.php(1781): SwingEvent::retrieve_matching_events(offers => NULL, venue_types => NULL, lat => NULL, lon => NULL, zip => NULL, city => NULL, radius => NULL, dt_start => , dt_end => )
ERROR: Error retrieving matching events: SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events
LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id )
LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id )
LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id )
LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id )
WHERE ( (
end_when = "0000-00-00"
OR
end_when >= "2020-02-01"
) AND (
start_when = "0000-00-00"
OR
start_when <= "2020-03-31"
) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC
Stack trace follows:
/usr/www/users/kmoser/swing/events/index.php(1783): KError::log_error(0 => Error retrieving matching events: SELECT SQL_CALC_FOUND_ROWS swing_events.id, swing_events.venue_id, swing_bands.id AS band_id, DATEDIFF( swing_events.when_added, NOW() ) AS when_added_days_ago, swing_bands.name AS band_name, swing_events.when_type, swing_events.weekdays, swing_events.start_when, swing_events.end_when, swing_events.time, swing_events.time_start, swing_events.time_end, swing_events.repeats, swing_venues.venue_type, swing_venues.name AS venue_name, swing_venues.name_short AS venue_name_short, swing_venues.address AS address, swing_venues.city AS city, swing_venues.state AS state, swing_venues.zip AS zip, swing_venues.lat AS lat, swing_venues.lon AS lon, swing_venues.phone AS phone, COALESCE( NULLIF( swing_events.url, "" ), swing_venues.url ) AS url, swing_venues.map_url AS map_url, COALESCE( NULLIF( swing_events.cost, "" ), swing_venues.cost ) AS cost, COALESCE( NULLIF( swing_events.name, "" ), NULLIF( swing_bands.name, "" ), swing_venues.name ) AS name, COALESCE( NULLIF( swing_events.name_short, "" ), NULLIF( swing_bands.name_short, "" ), swing_venues.name_short ) AS name_short, COALESCE( NULLIF( swing_events.image, "" ), swing_venues.image ) AS image, COALESCE( NULLIF( swing_events.description, "" ), swing_venues.description ) AS description, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_lessons, swing_events.offer_lessons ) AS offer_lessons, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_social, swing_events.offer_social ) AS offer_social, IF( swing_events.offer_lessons = "" AND swing_events.offer_social = "" AND swing_events.offer_music = "", swing_venues.offer_music, swing_events.offer_music ) AS offer_music, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_ecs, swing_events.lesson_ecs ) AS lesson_ecs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_wcs, swing_events.lesson_wcs ) AS lesson_wcs, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_lindy, swing_events.lesson_lindy ) AS lesson_lindy, IF ( swing_events.lesson_ecs = "" AND swing_events.lesson_wcs = "" AND swing_events.lesson_lindy = "" AND swing_events.lesson_blues = "", swing_venues.lesson_blues, swing_events.lesson_blues ) AS lesson_blues, NULL AS distance, GROUP_CONCAT( DISTINCT( swing_event_dates.`date` ) ) AS event_dates, GROUP_CONCAT( DISTINCT( swing_event_date_exceptions.`date` ) ) AS event_date_exceptions FROM swing_events LEFT JOIN swing_venues ON ( swing_events.venue_id = swing_venues.id ) LEFT JOIN swing_bands ON ( swing_events.band_id = swing_bands.id ) LEFT JOIN swing_event_dates ON ( swing_events.id = swing_event_dates.event_id ) LEFT JOIN swing_event_date_exceptions ON ( swing_events.id = swing_event_date_exceptions.event_id ) WHERE ( ( end_when = "0000-00-00" OR end_when >= "2020-02-01" ) AND ( start_when = "0000-00-00" OR start_when <= "2020-03-31" ) ) GROUP BY swing_events.id ORDER BY swing_events.`start_when` ASC, swing_events.`time_start` ASC, swing_event_dates.`date` ASC, swing_event_date_exceptions.`date` ASC)
  • Sun
  • Mon
  • Tue
  • Wed
  • Thu
  • Fri
  • Sat
  • Sat, Feb
  • Sat, Feb
  • Sat, Feb
  • Sat, Feb
  • Sat, Feb
  • Sat, Feb
  • Sat, Feb 1
  • Sun, Feb 2
  • Mon, Feb 3
  • Tue, Feb 4
  • Wed, Feb 5
  • Thu, Feb 6
  • Fri, Feb 7
  • Sat, Feb 8
  • Sun, Feb 9
  • Mon, Feb 10
  • Tue, Feb 11
  • Wed, Feb 12
  • Thu, Feb 13
  • Fri, Feb 14
  • Sat, Feb 15
  • Sun, Feb 16
  • Mon, Feb 17
  • Tue, Feb 18
  • Wed, Feb 19
  • Thu, Feb 20
  • Fri, Feb 21
  • Sat, Feb 22
  • Sun, Feb 23
  • Mon, Feb 24
  • Tue, Feb 25
  • Wed, Feb 26
  • Thu, Feb 27
  • Fri, Feb 28
  • Sat, Feb 29

Map

Please wait while the map loads...

Venues

ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(offers => NULL, search_lat => NULL, search_lon => NULL, search_zip => NULL, search_city => NULL, search_radius => NULL)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(offers => NULL, search_lat => NULL, search_lon => NULL, search_zip => NULL, search_city => NULL, search_radius => NULL)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(offers => NULL, search_lat => NULL, search_lon => NULL, search_zip => NULL, search_city => NULL, search_radius => NULL)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(offers => NULL, search_lat => NULL, search_lon => NULL, search_zip => NULL, search_city => NULL, search_radius => NULL)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(offers => NULL, search_lat => NULL, search_lon => NULL, search_zip => NULL, search_city => NULL, search_radius => NULL)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)
ERROR: Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC')
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(offers => NULL, search_lat => NULL, search_lon => NULL, search_zip => NULL, search_city => NULL, search_radius => NULL)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)
ERROR: Error selecting events.
Stack trace follows:
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(388): KError::log_error(0 => Error selecting events.)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(offers => NULL, search_lat => NULL, search_lon => NULL, search_zip => NULL, search_city => NULL, search_radius => NULL)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)
ERROR: Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/events/index.php(866): KError::log_error(0 => Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/events/index.php(1896): do_section(0 => venues, 1 => Venues, 2 => NULL)

Lessons

ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => lessons)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => lessons)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => lessons)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => lessons)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => lessons)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)
ERROR: Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC')
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => lessons)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)
ERROR: Error selecting events.
Stack trace follows:
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(388): KError::log_error(0 => Error selecting events.)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => lessons)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)
ERROR: Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/events/index.php(866): KError::log_error(0 => Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_lessons != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/events/index.php(2137): do_section(0 => lessons)

Social Dancing

ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => social)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => social)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => social)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => social)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => social)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)
ERROR: Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC')
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => social)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)
ERROR: Error selecting events.
Stack trace follows:
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(388): KError::log_error(0 => Error selecting events.)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => social)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)
ERROR: Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/events/index.php(866): KError::log_error(0 => Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_social != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/events/index.php(2144): do_section(0 => social)

Music

Most of these venues don't have a dedicated dance floor so please be careful that your dancing doesn't interfere with staff, other patrons, or the band.

ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => music)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => music)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => music)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => music)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => music)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)
ERROR: Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC')
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(23): KRec->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(386): SwingVenue->select_all_rows(0 => swing_venues.*, 1 => AVG( swing_venue_ratings.stars ) AS stars, 2 => COUNT( swing_venue_ratings.id ) AS num_reviews, 3 => NULL AS distance)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => music)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)
ERROR: Error selecting events.
Stack trace follows:
/usr/www/users/kmoser/swing/swing-inc/SwingVenue.inc.php(388): KError::log_error(0 => Error selecting events.)
/usr/www/users/kmoser/swing/events/index.php(864): SwingVenue::retrieve_matching_venues(0 => music)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)
ERROR: Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC
Stack trace follows:
/usr/www/users/kmoser/swing/events/index.php(866): KError::log_error(0 => Error retrieving matching venues: SELECT SQL_CALC_FOUND_ROWS swing_venues.*, AVG( swing_venue_ratings.stars ) AS stars, COUNT( swing_venue_ratings.id ) AS num_reviews, NULL AS distance FROM swing_venues LEFT JOIN swing_venue_ratings ON ( swing_venue_ratings.venue_id = swing_venues.id ) WHERE ( swing_venues.offer_music != '' AND is_hidden = 0 ) GROUP BY swing_venues.id ORDER BY name ASC)
/usr/www/users/kmoser/swing/events/index.php(2151): do_section(0 => music)

Bands

These bands are either based in South Florida or play in South Florida on a regular basis.

ERROR: Error setting MySQL charset to 'utf8'.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(163): KError->log_error(0 => Error setting MySQL charset to 'utf8'.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/swing-inc/SwingBand.inc.php(23): KRec::select_all_rows(order => name, callback => )
/usr/www/users/kmoser/swing/events/index.php(2213): SwingBand::select_all_rows(order => name, callback => )
ERROR: Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(215): KObj->log_error(0 => Failed to connect to host and/or DB (host='db148c.pair.com', username='kmoser_30_w', pw='[redacted]', db='kmoser_kms').)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/swing-inc/SwingBand.inc.php(23): KRec::select_all_rows(order => name, callback => )
/usr/www/users/kmoser/swing/events/index.php(2213): SwingBand::select_all_rows(order => name, callback => )
ERROR: No dbh.
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KDatabase.inc.php(233): KError->log_error(0 => No dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(940): KDatabase->connect(0 => FALSE)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/swing-inc/SwingBand.inc.php(23): KRec::select_all_rows(order => name, callback => )
/usr/www/users/kmoser/swing/events/index.php(2213): SwingBand::select_all_rows(order => name, callback => )
ERROR: Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to connect. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(948): KRec->log_error(0 => Unable to connect.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1070): KRec->dbh()
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/swing-inc/SwingBand.inc.php(23): KRec::select_all_rows(order => name, callback => )
/usr/www/users/kmoser/swing/events/index.php(2213): SwingBand::select_all_rows(order => name, callback => )
ERROR: Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Unable to get dbh. SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1087): KRec->log_error(0 => Unable to get dbh.)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1984): KRec->execute_query(0 => SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/swing-inc/SwingBand.inc.php(23): KRec::select_all_rows(order => name, callback => )
/usr/www/users/kmoser/swing/events/index.php(2213): SwingBand::select_all_rows(order => name, callback => )
ERROR: Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name
Stack trace follows:
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(269): KError->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(2918): KObj->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name' SQL error=, error number=, SQL statement=SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name)
/usr/www/users/kmoser/swing/inc/KLib/KObj.inc.php(1992): KRec->log_error(0 => Query failed; error='' (), SQL='SELECT SQL_CALC_FOUND_ROWS * FROM swing_bands ORDER BY name')
/usr/www/users/kmoser/swing/swing-inc/SwingBand.inc.php(23): KRec::select_all_rows(order => name, callback => )
/usr/www/users/kmoser/swing/events/index.php(2213): SwingBand::select_all_rows(order => name, callback => )
ERROR: Error getting bands.
Stack trace follows:
/usr/www/users/kmoser/swing/events/index.php(2215): KError::log_error(0 => Error getting bands.)

Contact

Get weekly updates on upcoming swing events including lessons, social dancing, and live music.

Join Mailing List »

Add your swing event to this page. Events should involve swing dancing, lessons, or swing/blues music.

List Your Event »

Contact me for more information on swing classes in the Jupiter / West Palm Beach area.

Swing Lessons »