If I read those correctly it's because in the SQL you don't specify which 'status', it should be td.status, right? Something like that 😁👍