select * from rsvt_room where p_id = '' and if(prd_type=2,'20191215' < r_start or '20191215' > r_end,prd_type!=2) and () order by c_id asc, r_order asc, uid asc
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') order by c_id asc, r_order asc, uid asc' at line 1
error file : /tn_pc/pen_detail.html