#1695 SQL error on task creation