You have an error in your SQL syntax near 'AND pano.project_id = project.project_id' at line 1