Fix wrong code & bump sql-query version