Unknown column 'locator' in 'where clause'