Database error: Invalid SQL: select * from itemlist where root_no=  and class_id = 2 and status_id = 1 order by orderno,id
PostgreSQL Error: 1 (ERROR:  syntax error at or near "and"
LINE 1: select * from itemlist where root_no=  and class_id = 2 and ...
                                               ^)
Session halted.