SQL Error: Unknown column 'working' in 'where clause'