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 '" or' at line 1
select * from no_results_query where search_query='ipc 376 ipc 363 age age below 18 love letters' and court=0" or