Query Error... : select * from orders and or_state>0 and (or_date >= '1668389746' and or_date <= '1670204146') order by idx desc