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 delete_flg = 0 AND open_date >= (SELECT open_date FROM at_information WHERE ' at line 1