avoid sql syntax error for spouts with zero items