Column 'status' in where clause is ambiguous