insert failed, error: 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 'is null and location_id=(select parent_seq from files where seq = a.file_seq)' at line 1