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 '(video)(design)(網頁設計)) AND application = 'blog' ORDER BY FIELD(tags_id, ' at line 1 in this syntax SELECT tags_id,name FROM tags WHERE tags_id IN ((3D)(video)(design)(網頁設計)) AND application = 'blog' ORDER BY FIELD(tags_id, (3D)(video)(design)(網頁設計)) ASC LIMIT 30