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 '';file_put_contents('rookie.php',('select * from ***_ecms_news where checked=1 and classid in (140,141,142,143,144,177,184) order by newstime DESC limit 50