I'm getting a `SqlException` in my code:

> 
> Incorrect syntax near 'MatricNO'
> 
> 
> 

Here is the code:

```
public static StudentDetail GetStudent(string MatricNO)
{
   //Calling on the connection class and get connection method
   SqlConnection connection = ConnectionClass.GetConnection();
   //Sql select statement that reads from the database
   string selectStatement = "SELECT MatricNO,Faculty,Department,Course,FirstName,MiddleName,LastName" +
                            "FROM StudentInfo" +
                            "WHERE MatricNO=@MatricNO";
   SqlCommand selectCommand=new SqlCommand(selectStatement,connection);
   selectCommand.Parameters.AddWithValue("@MatricNO", MatricNO);

   try
   {
       connection.Open();
       SqlDataReader reader = selectCommand.ExecuteReader(CommandBehavior.SingleRow);
       if(reader.Read())
       {
          //Read the database information into the StudentDetail Class
           StudentDetail studentDetail=new StudentDetail();
           studentDetail.Studentmatricno = reader["MatricNO"].ToString();
           studentDetail.Faculty = reader["Faculty"].ToString();
           studentDetail.Dept = reader["Department"].ToString();
           studentDetail.Course = reader["Course"].ToString();
           studentDetail.Firstname = reader["FirstName"].ToString();
           studentDetail.Middlename = reader["MiddleName"].ToString();
           studentDetail.Surname = reader["LastName"].ToString();
           return studentDetail; //return all that has been read to the student detail class
       }
       else
       {
           // return null if queried record does not exist
           return null;
       }

   }
   catch (SqlException ex)
   {

       throw ex;
   }
   finally
   {
       connection.Close();
   }
}

```

Can anyone help me resolve this issue?