無法執行資料庫指令
SELECT n.* FROM `imw_news` as n
						LEFT JOIN imw_content as nt ON n.`type_id`=nt.`id` 
						WHERE nt.`status`='1' and n.`type_id`= AND 
						n.`date_start` <= '2017-12-12' AND (n.`status`='1' or (n.`status`='2' and n.`date_end` >= '2017-12-12'))  
						ORDER BY n.date_start  

MySQL 錯誤訊息: 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 n.`date_start` <= '2017-12-12' AND (n.`status`='1' or (n.`status`='2' at line 3因為無法正常執行資料庫指令, 系統已中斷執行作業