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 ' find_in_set(392, curriculum) >0) > 0)) as t1 on s.sid = t1.sid left outer jo' at line 74