APPLICATION ERROR #401

Database query failed. Error received from database was #0: [Microsoft][ODBC SQL Server Driver]Invalid parameter number for the query:
SELECT DISTINCT cft.id
FROM mantis_custom_field_table cft
JOIN mantis_custom_field_project_table cfpt ON cfpt.field_id = cft.id
JOIN mantis_project_table pt
ON pt.id = cfpt.project_id AND pt.enabled = 1
LEFT JOIN mantis_project_user_list_table pult
ON pult.project_id = cfpt.project_id AND pult.user_id = ?
, mantis_user_table ut
WHERE ut.id = ?
AND ( pt.view_state = 10
OR pult.user_id = ut.id
OR ( pult.user_id IS NULL AND ut.access_level >=? ) ).

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Full path: C:\inetpub\wwwroot\nicolifemantis\core\database_api.php
Line: 405
VariableValueType
p_query SELECT DISTINCT cft.id FROM mantis_custom_field_table cft JOIN mantis_custom_field_project_table cfpt ON cfpt.field_id = cft.id JOIN mantis_project_table pt ON pt.id = cfpt.project_id AND pt.enabled = 1 LEFT JOIN mantis_project_user_list_table pult ON pult.project_id = cfpt.project_id AND pult.user_id = ? , mantis_user_table ut WHERE ut.id = ? AND ( pt.view_state = 10 OR pult.user_id = ut.id OR ( pult.user_id IS NULL AND ut.access_level >=? ) )string
p_limit-1integer
p_offset-1integer
g_db_log_queriesboolean
g_db_param_count15integer
t_db_typeodbc_mssqlstring
s_check_params1boolean
params3integer
i3integer
t_resultboolean

arr_parms
VariableValueType
01integer
11integer
290integer

g_queries_array
VariableValueType
01integer
11integer
21integer
31integer
41integer
51integer
61integer
71integer
81integer
91integer
101integer
111integer
121integer
FilenameLineFunctionArgs
C:\inetpub\wwwroot\nicolifemantis\core\database_api.php405--trigger_error( <string>'401', <integer>256 )
C:\inetpub\wwwroot\nicolifemantis\core\custom_field_api.php749--db_query_bound( <string>' SELECT DISTINCT cft.id FROM mantis_custom_field_table cft JOIN mantis_custom_field_project_table cfpt ON cfpt.field_id = cft.id JOIN mantis_project_table pt ON pt.id = cfpt.project_id AND pt.enabled = 1 LEFT JOIN mantis_project_user_list_table pult ON pult.project_id = cfpt.project_id AND pult.user_id = ? , mantis_user_table ut WHERE ut.id = ? AND ( pt.view_state = 10 OR pult.user_id = ut.id OR ( pult.user_id IS NULL AND ut.access_level >=? ) )', <Array> { [0] => 1, [1] => 1, [2] => 90 } )
C:\inetpub\wwwroot\nicolifemantis\core\columns_api.php188--custom_field_get_linked_ids( <integer>0 )
C:\inetpub\wwwroot\nicolifemantis\core\custom_function_api.php230--columns_get_all( <integer>0 )
----custom_function_default_get_columns_to_view( <integer>1, <NULL>NULL )
C:\inetpub\wwwroot\nicolifemantis\core\helper_api.php344--call_user_func_array( <string>'custom_function_default_get_columns_to_view', <Array> { [0] => 1, [1] => NULL } )
C:\inetpub\wwwroot\nicolifemantis\core\helper_api.php379--helper_call_custom_function( <string>'get_columns_to_view', <Array> { [0] => 1, [1] => NULL } )
C:\inetpub\wwwroot\nicolifemantis\core\filter_api.php602--helper_get_columns_to_view-
C:\inetpub\wwwroot\nicolifemantis\core\filter_api.php784--filter_ensure_valid_filter( <Array> { ['show_category'] => <Array> { [0] => 0 }, ['show_severity'] => <Array> { [0] => 0 }, ['show_status'] => <Array> { [0] => 0 }, ['highlight_changed'] => 6, ['reporter_id'] => <Array> { [0] => 0 }, ['handler_id'] => <Array> { [0] => 0 }, ['project_id'] => <Array> { [0] => -3 }, ['show_resolution'] => <Array> { [0] => 0 }, ['show_build'] => <Array> { [0] => 0 }, ['show_version'] => <Array> { [0] => 0 }, ['hide_status'] => <Array> { [0] => 90 }, ['user_monitor'] => <Array> { [0] => 0 }, ['sort'] => 'last_updated', ['dir'] => 'DESC', ['per_page'] => 50, ['match_type'] => 0 } )
C:\inetpub\wwwroot\nicolifemantis\my_view_inc.php47--filter_get_default-
C:\inetpub\wwwroot\nicolifemantis\my_view_page.php115--include( <string>'C:\\inetpub\\wwwroot\\nicolifemantis\\my_view_inc.php' )

Previous non-fatal errors occurred. Page contents follow.

SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in 'C:\inetpub\wwwroot\nicolifemantis\core.php' line 254

My View - MantisBT
MantisBT