You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 's Nursing Administration 2021' order by sn' at line 1select * from college_rank where 1 and data_type='%E7%BE%8E%E5%9C%8B%E6%8E%92%E5%90%8D' and dep like 'Master's Nursing Administration 2021' order by sn