#50 SQL statement changed