Handling Error

DB_Error Object
(
    [error_message_prefix] => 
    [mode] => 1
    [level] => 1024
    [code] => -2
    [message] => DB Error: syntax error
    [userinfo] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id =  [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7]
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /home/tremainedance/public_html/libs/PEAR/DB.php
                    [line] => 888
                    [function] => PEAR_Error
                    [class] => PEAR_Error
                    [object] => DB_Error Object
 *RECURSION*
                    [type] => ->
                    [args] => Array
                        (
                            [0] => DB Error: syntax error
                            [1] => -2
                            [2] => 1
                            [3] => 1024
                            [4] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id =  [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7]
                        )

                )

            [1] => Array
                (
                    [file] => /home/tremainedance/public_html/libs/PEAR/PEAR.php
                    [line] => 557
                    [function] => DB_Error
                    [class] => DB_Error
                    [object] => DB_Error Object
 *RECURSION*
                    [type] => ->
                    [args] => Array
                        (
                            [0] => -2
                            [1] => 1
                            [2] => 1024
                            [3] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id =  [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7]
                        )

                )

            [2] => Array
                (
                    [file] => /home/tremainedance/public_html/libs/PEAR/DB/common.php
                    [line] => 1849
                    [function] => raiseError
                    [class] => PEAR
                    [object] => DB_mysqli Object
                        (
                            [phptype] => mysqli
                            [dbsyntax] => mysqli
                            [features] => Array
                                (
                                    [limit] => alter
                                    [new_link] => 
                                    [numrows] => 1
                                    [pconnect] => 
                                    [prepare] => 
                                    [ssl] => 1
                                    [transactions] => 1
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1044] => -26
                                    [1046] => -14
                                    [1048] => -3
                                    [1049] => -27
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1061] => -5
                                    [1062] => -5
                                    [1064] => -2
                                    [1091] => -4
                                    [1100] => -21
                                    [1136] => -22
                                    [1142] => -26
                                    [1146] => -18
                                    [1216] => -3
                                    [1217] => -3
                                )

                            [connection] => mysqli Object
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysqli
                                    [dbsyntax] => mysqli
                                    [username] => tremainedance
                                    [password] => LZ9wka14rj
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => tremainedance
                                )

                            [autocommit] => 1
                            [transaction_opcount] => 0
                            [_db] => tremainedance
                            [mysqli_flags] => Array
                                (
                                    [1] => not_null
                                    [2] => primary_key
                                    [4] => unique_key
                                    [8] => multiple_key
                                    [16] => blob
                                    [32] => unsigned
                                    [64] => zerofill
                                    [512] => auto_increment
                                    [1024] => timestamp
                                    [2048] => set
                                    [32768] => group_by
                                )

                            [mysqli_types] => Array
                                (
                                    [0] => decimal
                                    [1] => tinyint
                                    [2] => int
                                    [3] => int
                                    [4] => float
                                    [5] => double
                                    [7] => timestamp
                                    [8] => bigint
                                    [9] => mediumint
                                    [10] => date
                                    [11] => time
                                    [12] => datetime
                                    [13] => year
                                    [14] => date
                                    [247] => enum
                                    [248] => set
                                    [249] => tinyblob
                                    [250] => mediumblob
                                    [251] => longblob
                                    [252] => blob
                                    [253] => varchar
                                    [254] => char
                                    [255] => geometry
                                )

                            [fetchmode] => 2
                            [fetchmode_object_class] => stdClass
                            [was_connected] => 
                            [last_query] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                            [options] => Array
                                (
                                    [result_buffering] => 500
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [last_parameters] => Array
                                (
                                )

                            [prepare_tokens] => Array
                                (
                                )

                            [prepare_types] => Array
                                (
                                )

                            [prepared_queries] => Array
                                (
                                )

                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => -2
                            [2] => 
                            [3] => 
                            [4] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id =  [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7]
                            [5] => DB_Error
                            [6] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /home/tremainedance/public_html/libs/PEAR/DB/mysqli.php
                    [line] => 920
                    [function] => raiseError
                    [class] => DB_common
                    [object] => DB_mysqli Object
                        (
                            [phptype] => mysqli
                            [dbsyntax] => mysqli
                            [features] => Array
                                (
                                    [limit] => alter
                                    [new_link] => 
                                    [numrows] => 1
                                    [pconnect] => 
                                    [prepare] => 
                                    [ssl] => 1
                                    [transactions] => 1
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1044] => -26
                                    [1046] => -14
                                    [1048] => -3
                                    [1049] => -27
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1061] => -5
                                    [1062] => -5
                                    [1064] => -2
                                    [1091] => -4
                                    [1100] => -21
                                    [1136] => -22
                                    [1142] => -26
                                    [1146] => -18
                                    [1216] => -3
                                    [1217] => -3
                                )

                            [connection] => mysqli Object
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysqli
                                    [dbsyntax] => mysqli
                                    [username] => tremainedance
                                    [password] => LZ9wka14rj
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => tremainedance
                                )

                            [autocommit] => 1
                            [transaction_opcount] => 0
                            [_db] => tremainedance
                            [mysqli_flags] => Array
                                (
                                    [1] => not_null
                                    [2] => primary_key
                                    [4] => unique_key
                                    [8] => multiple_key
                                    [16] => blob
                                    [32] => unsigned
                                    [64] => zerofill
                                    [512] => auto_increment
                                    [1024] => timestamp
                                    [2048] => set
                                    [32768] => group_by
                                )

                            [mysqli_types] => Array
                                (
                                    [0] => decimal
                                    [1] => tinyint
                                    [2] => int
                                    [3] => int
                                    [4] => float
                                    [5] => double
                                    [7] => timestamp
                                    [8] => bigint
                                    [9] => mediumint
                                    [10] => date
                                    [11] => time
                                    [12] => datetime
                                    [13] => year
                                    [14] => date
                                    [247] => enum
                                    [248] => set
                                    [249] => tinyblob
                                    [250] => mediumblob
                                    [251] => longblob
                                    [252] => blob
                                    [253] => varchar
                                    [254] => char
                                    [255] => geometry
                                )

                            [fetchmode] => 2
                            [fetchmode_object_class] => stdClass
                            [was_connected] => 
                            [last_query] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                            [options] => Array
                                (
                                    [result_buffering] => 500
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [last_parameters] => Array
                                (
                                )

                            [prepare_tokens] => Array
                                (
                                )

                            [prepare_types] => Array
                                (
                                )

                            [prepared_queries] => Array
                                (
                                )

                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => -2
                            [1] => 
                            [2] => 
                            [3] => 
                            [4] => 1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 7
                        )

                )

            [4] => Array
                (
                    [file] => /home/tremainedance/public_html/libs/PEAR/DB/mysqli.php
                    [line] => 395
                    [function] => mysqliRaiseError
                    [class] => DB_mysqli
                    [object] => DB_mysqli Object
                        (
                            [phptype] => mysqli
                            [dbsyntax] => mysqli
                            [features] => Array
                                (
                                    [limit] => alter
                                    [new_link] => 
                                    [numrows] => 1
                                    [pconnect] => 
                                    [prepare] => 
                                    [ssl] => 1
                                    [transactions] => 1
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1044] => -26
                                    [1046] => -14
                                    [1048] => -3
                                    [1049] => -27
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1061] => -5
                                    [1062] => -5
                                    [1064] => -2
                                    [1091] => -4
                                    [1100] => -21
                                    [1136] => -22
                                    [1142] => -26
                                    [1146] => -18
                                    [1216] => -3
                                    [1217] => -3
                                )

                            [connection] => mysqli Object
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysqli
                                    [dbsyntax] => mysqli
                                    [username] => tremainedance
                                    [password] => LZ9wka14rj
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => tremainedance
                                )

                            [autocommit] => 1
                            [transaction_opcount] => 0
                            [_db] => tremainedance
                            [mysqli_flags] => Array
                                (
                                    [1] => not_null
                                    [2] => primary_key
                                    [4] => unique_key
                                    [8] => multiple_key
                                    [16] => blob
                                    [32] => unsigned
                                    [64] => zerofill
                                    [512] => auto_increment
                                    [1024] => timestamp
                                    [2048] => set
                                    [32768] => group_by
                                )

                            [mysqli_types] => Array
                                (
                                    [0] => decimal
                                    [1] => tinyint
                                    [2] => int
                                    [3] => int
                                    [4] => float
                                    [5] => double
                                    [7] => timestamp
                                    [8] => bigint
                                    [9] => mediumint
                                    [10] => date
                                    [11] => time
                                    [12] => datetime
                                    [13] => year
                                    [14] => date
                                    [247] => enum
                                    [248] => set
                                    [249] => tinyblob
                                    [250] => mediumblob
                                    [251] => longblob
                                    [252] => blob
                                    [253] => varchar
                                    [254] => char
                                    [255] => geometry
                                )

                            [fetchmode] => 2
                            [fetchmode_object_class] => stdClass
                            [was_connected] => 
                            [last_query] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                            [options] => Array
                                (
                                    [result_buffering] => 500
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [last_parameters] => Array
                                (
                                )

                            [prepare_tokens] => Array
                                (
                                )

                            [prepare_types] => Array
                                (
                                )

                            [prepared_queries] => Array
                                (
                                )

                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [5] => Array
                (
                    [file] => /home/tremainedance/public_html/libs/PEAR/DB/common.php
                    [line] => 1162
                    [function] => simpleQuery
                    [class] => DB_mysqli
                    [object] => DB_mysqli Object
                        (
                            [phptype] => mysqli
                            [dbsyntax] => mysqli
                            [features] => Array
                                (
                                    [limit] => alter
                                    [new_link] => 
                                    [numrows] => 1
                                    [pconnect] => 
                                    [prepare] => 
                                    [ssl] => 1
                                    [transactions] => 1
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1044] => -26
                                    [1046] => -14
                                    [1048] => -3
                                    [1049] => -27
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1061] => -5
                                    [1062] => -5
                                    [1064] => -2
                                    [1091] => -4
                                    [1100] => -21
                                    [1136] => -22
                                    [1142] => -26
                                    [1146] => -18
                                    [1216] => -3
                                    [1217] => -3
                                )

                            [connection] => mysqli Object
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysqli
                                    [dbsyntax] => mysqli
                                    [username] => tremainedance
                                    [password] => LZ9wka14rj
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => tremainedance
                                )

                            [autocommit] => 1
                            [transaction_opcount] => 0
                            [_db] => tremainedance
                            [mysqli_flags] => Array
                                (
                                    [1] => not_null
                                    [2] => primary_key
                                    [4] => unique_key
                                    [8] => multiple_key
                                    [16] => blob
                                    [32] => unsigned
                                    [64] => zerofill
                                    [512] => auto_increment
                                    [1024] => timestamp
                                    [2048] => set
                                    [32768] => group_by
                                )

                            [mysqli_types] => Array
                                (
                                    [0] => decimal
                                    [1] => tinyint
                                    [2] => int
                                    [3] => int
                                    [4] => float
                                    [5] => double
                                    [7] => timestamp
                                    [8] => bigint
                                    [9] => mediumint
                                    [10] => date
                                    [11] => time
                                    [12] => datetime
                                    [13] => year
                                    [14] => date
                                    [247] => enum
                                    [248] => set
                                    [249] => tinyblob
                                    [250] => mediumblob
                                    [251] => longblob
                                    [252] => blob
                                    [253] => varchar
                                    [254] => char
                                    [255] => geometry
                                )

                            [fetchmode] => 2
                            [fetchmode_object_class] => stdClass
                            [was_connected] => 
                            [last_query] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                            [options] => Array
                                (
                                    [result_buffering] => 500
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [last_parameters] => Array
                                (
                                )

                            [prepare_tokens] => Array
                                (
                                )

                            [prepare_types] => Array
                                (
                                )

                            [prepared_queries] => Array
                                (
                                )

                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                        )

                )

            [6] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/DBHandler.php
                    [line] => 90
                    [function] => query
                    [class] => DB_common
                    [object] => DB_mysqli Object
                        (
                            [phptype] => mysqli
                            [dbsyntax] => mysqli
                            [features] => Array
                                (
                                    [limit] => alter
                                    [new_link] => 
                                    [numrows] => 1
                                    [pconnect] => 
                                    [prepare] => 
                                    [ssl] => 1
                                    [transactions] => 1
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1044] => -26
                                    [1046] => -14
                                    [1048] => -3
                                    [1049] => -27
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1061] => -5
                                    [1062] => -5
                                    [1064] => -2
                                    [1091] => -4
                                    [1100] => -21
                                    [1136] => -22
                                    [1142] => -26
                                    [1146] => -18
                                    [1216] => -3
                                    [1217] => -3
                                )

                            [connection] => mysqli Object
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysqli
                                    [dbsyntax] => mysqli
                                    [username] => tremainedance
                                    [password] => LZ9wka14rj
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => tremainedance
                                )

                            [autocommit] => 1
                            [transaction_opcount] => 0
                            [_db] => tremainedance
                            [mysqli_flags] => Array
                                (
                                    [1] => not_null
                                    [2] => primary_key
                                    [4] => unique_key
                                    [8] => multiple_key
                                    [16] => blob
                                    [32] => unsigned
                                    [64] => zerofill
                                    [512] => auto_increment
                                    [1024] => timestamp
                                    [2048] => set
                                    [32768] => group_by
                                )

                            [mysqli_types] => Array
                                (
                                    [0] => decimal
                                    [1] => tinyint
                                    [2] => int
                                    [3] => int
                                    [4] => float
                                    [5] => double
                                    [7] => timestamp
                                    [8] => bigint
                                    [9] => mediumint
                                    [10] => date
                                    [11] => time
                                    [12] => datetime
                                    [13] => year
                                    [14] => date
                                    [247] => enum
                                    [248] => set
                                    [249] => tinyblob
                                    [250] => mediumblob
                                    [251] => longblob
                                    [252] => blob
                                    [253] => varchar
                                    [254] => char
                                    [255] => geometry
                                )

                            [fetchmode] => 2
                            [fetchmode_object_class] => stdClass
                            [was_connected] => 
                            [last_query] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                            [options] => Array
                                (
                                    [result_buffering] => 500
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [last_parameters] => Array
                                (
                                )

                            [prepare_tokens] => Array
                                (
                                )

                            [prepare_types] => Array
                                (
                                )

                            [prepared_queries] => Array
                                (
                                )

                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                        )

                )

            [7] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/App/AnnualWinners.php
                    [line] => 234
                    [function] => query
                    [class] => DBHandler
                    [object] => DBHandler Object
                        (
                            [dsn:private] => mysqli://tremainedance:LZ9wka14rj@localhost/tremainedance
                            [dbcon] => DB_mysqli Object
                                (
                                    [phptype] => mysqli
                                    [dbsyntax] => mysqli
                                    [features] => Array
                                        (
                                            [limit] => alter
                                            [new_link] => 
                                            [numrows] => 1
                                            [pconnect] => 
                                            [prepare] => 
                                            [ssl] => 1
                                            [transactions] => 1
                                        )

                                    [errorcode_map] => Array
                                        (
                                            [1004] => -15
                                            [1005] => -15
                                            [1006] => -15
                                            [1007] => -5
                                            [1008] => -17
                                            [1022] => -5
                                            [1044] => -26
                                            [1046] => -14
                                            [1048] => -3
                                            [1049] => -27
                                            [1050] => -5
                                            [1051] => -18
                                            [1054] => -19
                                            [1061] => -5
                                            [1062] => -5
                                            [1064] => -2
                                            [1091] => -4
                                            [1100] => -21
                                            [1136] => -22
                                            [1142] => -26
                                            [1146] => -18
                                            [1216] => -3
                                            [1217] => -3
                                        )

                                    [connection] => mysqli Object
                                        (
                                        )

                                    [dsn] => Array
                                        (
                                            [phptype] => mysqli
                                            [dbsyntax] => mysqli
                                            [username] => tremainedance
                                            [password] => LZ9wka14rj
                                            [protocol] => tcp
                                            [hostspec] => localhost
                                            [port] => 
                                            [socket] => 
                                            [database] => tremainedance
                                        )

                                    [autocommit] => 1
                                    [transaction_opcount] => 0
                                    [_db] => tremainedance
                                    [mysqli_flags] => Array
                                        (
                                            [1] => not_null
                                            [2] => primary_key
                                            [4] => unique_key
                                            [8] => multiple_key
                                            [16] => blob
                                            [32] => unsigned
                                            [64] => zerofill
                                            [512] => auto_increment
                                            [1024] => timestamp
                                            [2048] => set
                                            [32768] => group_by
                                        )

                                    [mysqli_types] => Array
                                        (
                                            [0] => decimal
                                            [1] => tinyint
                                            [2] => int
                                            [3] => int
                                            [4] => float
                                            [5] => double
                                            [7] => timestamp
                                            [8] => bigint
                                            [9] => mediumint
                                            [10] => date
                                            [11] => time
                                            [12] => datetime
                                            [13] => year
                                            [14] => date
                                            [247] => enum
                                            [248] => set
                                            [249] => tinyblob
                                            [250] => mediumblob
                                            [251] => longblob
                                            [252] => blob
                                            [253] => varchar
                                            [254] => char
                                            [255] => geometry
                                        )

                                    [fetchmode] => 2
                                    [fetchmode_object_class] => stdClass
                                    [was_connected] => 
                                    [last_query] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                                    [options] => Array
                                        (
                                            [result_buffering] => 500
                                            [persistent] => 
                                            [ssl] => 
                                            [debug] => 0
                                            [seqname_format] => %s_seq
                                            [autofree] => 
                                            [portability] => 0
                                            [optimize] => performance
                                        )

                                    [last_parameters] => Array
                                        (
                                        )

                                    [prepare_tokens] => Array
                                        (
                                        )

                                    [prepare_types] => Array
                                        (
                                        )

                                    [prepared_queries] => Array
                                        (
                                        )

                                    [_debug] => 
                                    [_default_error_mode] => 
                                    [_default_error_options] => 
                                    [_default_error_handler] => 
                                    [_error_class] => DB_Error
                                    [_expected_errors] => Array
                                        (
                                        )

                                )

                            [fetchMode] => 
                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                        )

                )

            [8] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/App/Doty.php
                    [line] => 28
                    [function] => getDetails
                    [class] => Data_AnnualWinners
                    [object] => Data_AnnualWinners Object
                        (
                            [db:protected] => DBHandler Object
                                (
                                    [dsn:private] => mysqli://tremainedance:LZ9wka14rj@localhost/tremainedance
                                    [dbcon] => DB_mysqli Object
                                        (
                                            [phptype] => mysqli
                                            [dbsyntax] => mysqli
                                            [features] => Array
                                                (
                                                    [limit] => alter
                                                    [new_link] => 
                                                    [numrows] => 1
                                                    [pconnect] => 
                                                    [prepare] => 
                                                    [ssl] => 1
                                                    [transactions] => 1
                                                )

                                            [errorcode_map] => Array
                                                (
                                                    [1004] => -15
                                                    [1005] => -15
                                                    [1006] => -15
                                                    [1007] => -5
                                                    [1008] => -17
                                                    [1022] => -5
                                                    [1044] => -26
                                                    [1046] => -14
                                                    [1048] => -3
                                                    [1049] => -27
                                                    [1050] => -5
                                                    [1051] => -18
                                                    [1054] => -19
                                                    [1061] => -5
                                                    [1062] => -5
                                                    [1064] => -2
                                                    [1091] => -4
                                                    [1100] => -21
                                                    [1136] => -22
                                                    [1142] => -26
                                                    [1146] => -18
                                                    [1216] => -3
                                                    [1217] => -3
                                                )

                                            [connection] => mysqli Object
                                                (
                                                )

                                            [dsn] => Array
                                                (
                                                    [phptype] => mysqli
                                                    [dbsyntax] => mysqli
                                                    [username] => tremainedance
                                                    [password] => LZ9wka14rj
                                                    [protocol] => tcp
                                                    [hostspec] => localhost
                                                    [port] => 
                                                    [socket] => 
                                                    [database] => tremainedance
                                                )

                                            [autocommit] => 1
                                            [transaction_opcount] => 0
                                            [_db] => tremainedance
                                            [mysqli_flags] => Array
                                                (
                                                    [1] => not_null
                                                    [2] => primary_key
                                                    [4] => unique_key
                                                    [8] => multiple_key
                                                    [16] => blob
                                                    [32] => unsigned
                                                    [64] => zerofill
                                                    [512] => auto_increment
                                                    [1024] => timestamp
                                                    [2048] => set
                                                    [32768] => group_by
                                                )

                                            [mysqli_types] => Array
                                                (
                                                    [0] => decimal
                                                    [1] => tinyint
                                                    [2] => int
                                                    [3] => int
                                                    [4] => float
                                                    [5] => double
                                                    [7] => timestamp
                                                    [8] => bigint
                                                    [9] => mediumint
                                                    [10] => date
                                                    [11] => time
                                                    [12] => datetime
                                                    [13] => year
                                                    [14] => date
                                                    [247] => enum
                                                    [248] => set
                                                    [249] => tinyblob
                                                    [250] => mediumblob
                                                    [251] => longblob
                                                    [252] => blob
                                                    [253] => varchar
                                                    [254] => char
                                                    [255] => geometry
                                                )

                                            [fetchmode] => 2
                                            [fetchmode_object_class] => stdClass
                                            [was_connected] => 
                                            [last_query] => SELECT aw.*, sp.name AS state, cad.name AS age_division
				FROM annual_winners AS aw
				LEFT JOIN states_provinces AS sp
					ON aw.state_province_id = sp.state_province_id
				LEFT JOIN comp_age_divisions AS cad
					ON aw.comp_age_division_id = cad.comp_age_division_id
				WHERE aw.annual_winner_id = 
                                            [options] => Array
                                                (
                                                    [result_buffering] => 500
                                                    [persistent] => 
                                                    [ssl] => 
                                                    [debug] => 0
                                                    [seqname_format] => %s_seq
                                                    [autofree] => 
                                                    [portability] => 0
                                                    [optimize] => performance
                                                )

                                            [last_parameters] => Array
                                                (
                                                )

                                            [prepare_tokens] => Array
                                                (
                                                )

                                            [prepare_types] => Array
                                                (
                                                )

                                            [prepared_queries] => Array
                                                (
                                                )

                                            [_debug] => 
                                            [_default_error_mode] => 
                                            [_default_error_options] => 
                                            [_default_error_handler] => 
                                            [_error_class] => DB_Error
                                            [_expected_errors] => Array
                                                (
                                                )

                                        )

                                    [fetchMode] => 
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )

                )

            [9] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/App/Doty.php
                    [line] => 14
                    [function] => getDetails
                    [class] => Controller_Doty
                    [object] => Controller_Doty Object
                        (
                            [context:private] => Context Object
                                (
                                    [params:private] => Array
                                        (
                                            [request_url] => doty_details/
                                            [mode] => details
                                            [annual_winner_id] => 
                                            [url] => doty_details/
                                            [pageID] => 324
                                            [pageName] => Doty
                                            [displayName] => DOTYDetails
                                        )

                                    [error:private] => 
                                )

                            [user:private] => 
                            [db:protected] => 
                            [content:protected] => 
                            [smarty:protected] => 
                            [template:protected] => templates/default.tpl
                            [smartyOptions:protected] => 
                            [override] => 
                        )

                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [10] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/Site.php
                    [line] => 215
                    [function] => __construct
                    [class] => Controller_Doty
                    [object] => Controller_Doty Object
                        (
                            [context:private] => Context Object
                                (
                                    [params:private] => Array
                                        (
                                            [request_url] => doty_details/
                                            [mode] => details
                                            [annual_winner_id] => 
                                            [url] => doty_details/
                                            [pageID] => 324
                                            [pageName] => Doty
                                            [displayName] => DOTYDetails
                                        )

                                    [error:private] => 
                                )

                            [user:private] => 
                            [db:protected] => 
                            [content:protected] => 
                            [smarty:protected] => 
                            [template:protected] => templates/default.tpl
                            [smartyOptions:protected] => 
                            [override] => 
                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => details
                        )

                )

            [11] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/Section/PageBody.php
                    [line] => 35
                    [function] => getController
                    [class] => Site
                    [type] => ::
                    [args] => Array
                        (
                            [0] => Doty
                            [1] => details
                        )

                )

            [12] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/Section/PageBody.php
                    [line] => 27
                    [function] => setPageBodyContent
                    [class] => Section_PageBody
                    [object] => Section_PageBody Object
                        (
                            [content:protected] => 
                            [context:protected] => Context Object
                                (
                                    [params:private] => Array
                                        (
                                            [request_url] => doty_details/
                                            [mode] => details
                                            [annual_winner_id] => 
                                            [url] => doty_details/
                                            [pageID] => 324
                                            [pageName] => Doty
                                            [displayName] => DOTYDetails
                                        )

                                    [error:private] => 
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [13] => Array
                (
                    [file] => /home/tremainedance/public_html/php_classes/Site.php
                    [line] => 181
                    [function] => __construct
                    [class] => Section_PageBody
                    [object] => Section_PageBody Object
                        (
                            [content:protected] => 
                            [context:protected] => Context Object
                                (
                                    [params:private] => Array
                                        (
                                            [request_url] => doty_details/
                                            [mode] => details
                                            [annual_winner_id] => 
                                            [url] => doty_details/
                                            [pageID] => 324
                                            [pageName] => Doty
                                            [displayName] => DOTYDetails
                                        )

                                    [error:private] => 
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [default_content] => 
) ) ) [14] => Array ( [file] => /home/tremainedance/public_html/php_classes/Page.php [line] => 138 [function] => getSection [class] => Site [type] => :: [args] => Array ( [0] => page_body [1] => Page Object ( [pageData] => Array ( [page_id] => 324 [parent_id] => 320 [page_name] => Doty [display_name] => DOTY Details [url] => doty_details/ [header_text] => Dancer of the Year [page_title] => Tremaine Dance Conventions & Competitions - DOTY Details [page_body] =>
[meta_description] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_keywords] => Tremaine Dance Conventions & Competitions - DOTY Details [sort_order] => 0 [page_template_id] => 1 [nav_menu] => None [target] => ) [pageName] => Doty [displayName] => DOTYDetails [pageTemplate] => templates/Page/default.tpl [sections] => Array ( [0] => ROOTURL [1] => page_title [2] => meta_keywords [3] => meta_description [4] => head [5] => primary_nav [6] => system_message [7] => header [8] => page_body [9] => footer ) [sectionData] => Array ( [page_title] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [meta_keywords] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [meta_description] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [head] => Array ( [default_content] => ) [primary_nav] => Array ( [default_content] => ) [system_message] => Array ( [default_content] => ) [header] => Array ( [default_content] => ) [page_body] => Array ( [default_content] =>
) ) [sectionContent] => Array ( [ROOTURL] => http://www.tremainedance.com/ [page_title] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_keywords] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_description] => Tremaine Dance Conventions & Competitions - DOTY Details [head] => [primary_nav] => [system_message] => [header] =>

Dancer of the Year

) [pageID] => 324 [pageTemplateID] => 1 ) ) ) [15] => Array ( [file] => /home/tremainedance/public_html/php_classes/Page.php [line] => 86 [function] => setSectionContent [class] => Page [object] => Page Object ( [pageData] => Array ( [page_id] => 324 [parent_id] => 320 [page_name] => Doty [display_name] => DOTY Details [url] => doty_details/ [header_text] => Dancer of the Year [page_title] => Tremaine Dance Conventions & Competitions - DOTY Details [page_body] =>
[meta_description] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_keywords] => Tremaine Dance Conventions & Competitions - DOTY Details [sort_order] => 0 [page_template_id] => 1 [nav_menu] => None [target] => ) [pageName] => Doty [displayName] => DOTYDetails [pageTemplate] => templates/Page/default.tpl [sections] => Array ( [0] => ROOTURL [1] => page_title [2] => meta_keywords [3] => meta_description [4] => head [5] => primary_nav [6] => system_message [7] => header [8] => page_body [9] => footer ) [sectionData] => Array ( [page_title] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [meta_keywords] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [meta_description] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [head] => Array ( [default_content] => ) [primary_nav] => Array ( [default_content] => ) [system_message] => Array ( [default_content] => ) [header] => Array ( [default_content] => ) [page_body] => Array ( [default_content] =>
) ) [sectionContent] => Array ( [ROOTURL] => http://www.tremainedance.com/ [page_title] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_keywords] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_description] => Tremaine Dance Conventions & Competitions - DOTY Details [head] => [primary_nav] => [system_message] => [header] =>

Dancer of the Year

) [pageID] => 324 [pageTemplateID] => 1 ) [type] => -> [args] => Array ( ) ) [16] => Array ( [file] => /home/tremainedance/public_html/php_classes/Page.php [line] => 180 [function] => __construct [class] => Page [object] => Page Object ( [pageData] => Array ( [page_id] => 324 [parent_id] => 320 [page_name] => Doty [display_name] => DOTY Details [url] => doty_details/ [header_text] => Dancer of the Year [page_title] => Tremaine Dance Conventions & Competitions - DOTY Details [page_body] =>
[meta_description] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_keywords] => Tremaine Dance Conventions & Competitions - DOTY Details [sort_order] => 0 [page_template_id] => 1 [nav_menu] => None [target] => ) [pageName] => Doty [displayName] => DOTYDetails [pageTemplate] => templates/Page/default.tpl [sections] => Array ( [0] => ROOTURL [1] => page_title [2] => meta_keywords [3] => meta_description [4] => head [5] => primary_nav [6] => system_message [7] => header [8] => page_body [9] => footer ) [sectionData] => Array ( [page_title] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [meta_keywords] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [meta_description] => Array ( [default_content] => Tremaine Dance Conventions & Competitions - DOTY Details ) [head] => Array ( [default_content] => ) [primary_nav] => Array ( [default_content] => ) [system_message] => Array ( [default_content] => ) [header] => Array ( [default_content] => ) [page_body] => Array ( [default_content] =>
) ) [sectionContent] => Array ( [ROOTURL] => http://www.tremainedance.com/ [page_title] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_keywords] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_description] => Tremaine Dance Conventions & Competitions - DOTY Details [head] => [primary_nav] => [system_message] => [header] =>

Dancer of the Year

) [pageID] => 324 [pageTemplateID] => 1 ) [type] => -> [args] => Array ( [0] => Array ( [page_id] => 324 [parent_id] => 320 [page_name] => Doty [display_name] => DOTY Details [url] => doty_details/ [header_text] => Dancer of the Year [page_title] => Tremaine Dance Conventions & Competitions - DOTY Details [page_body] =>
[meta_description] => Tremaine Dance Conventions & Competitions - DOTY Details [meta_keywords] => Tremaine Dance Conventions & Competitions - DOTY Details [sort_order] => 0 [page_template_id] => 1 [nav_menu] => None [target] => ) ) ) [17] => Array ( [file] => /home/tremainedance/public_html/php_classes/Site.php [line] => 148 [function] => getInstance [class] => Page [type] => :: [args] => Array ( ) ) [18] => Array ( [file] => /home/tremainedance/public_html/index.php [line] => 30 [function] => publishPage [class] => Site [type] => :: [args] => Array ( ) ) ) [callback] => )