$sqlVar="SELECT * FROM fixtures";
{
$sqlVar.="WHERE fixtures.TeamName LIKE '%".$_GET['TeamID']."'";
}
if the above is your exact code the string $sqlVar should have the following value:
SELECT * FROM fixturesWHERE fixtures.TeamName LIKE '%".$_GET['TeamID']."'"
It is obvious then that you need a space between fixtures and WHERE. It's often good to echo out sql queries, it is often very obvious what's wrong.
the advice dancahill gave you was good, simplifies your code.
regards,
thom