Fixed second SQL statement