Silencing unnecessary warning in query runner method