Corrected first SQL statement