Fixed an invalid SQL query in SectionedService