fix bug: select where statement without priority