I'm posting what is likely a simple problem but I'm over looking it I think. I've got a small script to post to a URL including what I want my WHERE clause to be defined by, which is then being carried into my SQL command, however I'm getting a message on the page generated stating that my defining information is not a column. My problem is that I should be a column anyway but data held within that column, where the information passed through should be the name of the team, so that the page only shows that one teams information out of x amount of teams... I hope that makes sense.. lets look at the code, hopefully that will be more useful than my ramblings...

The result is only of one record, and not multiple records where the Team string is correct, so where I should get two results, I'm only getting one. This is however all ways the second result, and never the first one to be read from the table, as though it's reading, writing the first result and then replacing it with the second. Any ideas why this may be the case.

I have the following code for displaying the results which should be working fine, and I've tested it with a simple SQL statement.