query : select * from product where (1=1) and view_ck='Y' and (product_icon = 'NEW' or product_icon = 'BEST' ) and ((s_date < now() and now() <= e_date ) or (s_date = '0000-00-00 00:00:00' and '0000-00-00 00:00:00' = e_date)) and () and gubun='P' order by order_num asc errno : 1064 error : 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 ') and gubun='P' order by order_num asc' at line 1 죄송합니다. 데이터베이스 접속에 장애가 있습니다. 잠시 후 이용해주세요.