Fix the SELECT on the generated views file.