select `no`, `date_public`, `ttl`, `txt`, `img_no`, DATE_FORMAT(`date_public`, '%Y.%m.%d') as `date_public_fmt` from `new_contents` where `disp_flg` is NULL and `visible` = 1 and `def_no` =1 and `menu_no` = and `no` =22439
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 `no` =22439' at line 1