Fixed select statement syntax