MySQL ERROR (1064) 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 'SUBSTR(m.notation,1,1) NOT IN ('A','B','C','D','E','F','G','H','I','J','K','L','' at line 1