I found people with the same problem, but none of their solutions helped me.
string checkuser = "select count(*) from Table where Username ='" + TextBox1.Text + "'";
It says "Incorrect syntax near the keyword 'Table'."
int temp = Convert.ToInt32(com.ExecuteScalar().ToString());
something about the ToString line