Sql error 1064
I'm using the following SQL code, to show the total sum of 2 columns from 4 tables:
SELECT (SELECT SUM(`STARTING` +`SUBS USED`)
FROM `player stats 0910`
WHERE `PLAYER ID` = '118') + (SELECT SUM(`App` + `Sub`) FROM `player stats 0809` WHERE `Player` = 'Joe Bloggs') + (SELECT SUM(`App` + `Sub`) FROM `player stats 0708` WHERE `Player` = 'Joe Bloggs') + (SELECT SUM(`App` + `Sub`) FROM `player stats 0607` WHERE `Player` = 'Joe Bloggs') AS 'Total Appearances'
When I test the SQL in a recordset in Dreamweaver (CS4), it works fine and gives me the correct total, but when I try to upload/add it to the page, I get a MM_Error #1064.
Has anyone come across this before, or know why this is happening?
Many Thanks
Andy
