Query 1c failed: 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 'AND zs_nrc = '1265d' AND sy_sy = '134' AND sy_zs_id = zs_id AND kt_sy_id =' at line 4