Database Query Error: Column 'status' in where clause is ambiguous