Fix SELECT queries case.