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 ' ps_infra_curso) OR ( FIND_IN_SET(0, ps_infra_curso) AND ' at line 4