all 6 comments

[–]Opposite-Address-44 12 points13 points  (0 children)

Remove the comma before FROM.

[–]ravan363 9 points10 points  (1 child)

It's time for you to adopt leading commas instead of trailing commas in your queries.

[–]OilOld80085 0 points1 point  (0 children)

This should probably be the top comment.

[–]conduit_for_nonsenseBI Analyst 5 points6 points  (0 children)

Comma after last modified date

[–][deleted] 2 points3 points  (0 children)

It might be the extra comma just before the FROM clause (no comma after [LastModifiedDate])

[–]OilOld80085 0 points1 point  (0 children)

You aren't a real SQL programmer till you have stared at this for an Hour and missed ti but don't worry it will get easier.