corrected a MySQL error