Fix SQL in Source.search