In your select statement you have a column: custom-queries
I'd avoid using dashes in column names, but when you do, you need to enclose it like: `custom-queries`
I see that you have done that for some of your columns with dashes, but not all of them on line 65.