I have the following tables:
Name: Posts Id Creator Title Body Tags Time 1 1 Test Test Test 123456789
and
Name: Action
As you can see you are using deleted while in data set it is delete
deleted
delete
SELECT `Posts`.*, IF(`Action`.`Type`='delete',1,0) AS "Deleted" FROM `Posts` JOIN `Action` ON `Action`.`Target` = `Posts`.`Id` WHERE `Action`.`Type` != 'like' ORDER BY `Id` DESC;