Unable to execute query. Unknown column 'DETOUR' in 'where clause'