In MantisBT 1.3, the db_query() function has been removed from the API (see https://github.com/mantisbt/mantisbt/pull/128), and replaced by db_query_bound(). Fixed it in the plugin GanttChart.