sql query fail...see github issue