I've noticed another thing.
You only need commas to seperate multiple field names.
You have a comma after the FROM table statement.
Remove this too.
ie. SELECT field1, field2 FROM table WHERE CLAUSE.
Depending on the SQL you are using, you may need a ';' at the end of your statement too.