Add a semicolon (;) to separate the queries.
The IDE expects select to begin a new query. if you don't add a semicolon to to a query and you open another within the same page, the select statement will conflict and the system will throw up that error.