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 publish_dt = '' and block=0 and fn_id != '' ORDER BY lastupdate desc, n_orde' at line 1