fixed invalid column name current_query for pgsql > 9.1