1064 error

Permalink
1064
YOU HAVE AN ERROR İN YOUR SQL SYNTAX; CHECK THE MANUAL THAT CORRESPONDS TO YOUR MYSQL SERVER VERSİON FOR THE RİGHT SYNTAX TO USE NEAR 'OR `A`.`İD` NOT IN (SELECT `CATEGORY_İD` FROM `BLUE_SOCİAL_CLUSTERS_CATEGORİES_A' AT LİNE 1 SQL=SELECT DISTINCT `A`.* FROM `BLUE_SOCİAL_CLUSTERS_CATEGORİES` AS `A` LEFT JOIN `BLUE_SOCİAL_CLUSTERS_CATEGORİES_ACCESS` AS `B` ON `A`.`İD` = `B`.`CATEGORY_İD` WHERE `A`.`TYPE` = 'EVENT' AND `A`.`STATE` = '1' AND (`B`.`PROFİLE_İD` = OR `A`.`İD` NOT IN (SELECT `CATEGORY_İD` FROM `BLUE_SOCİAL_CLUSTERS_CATEGORİES_ACCESS`)) ORDER BY `A`.`ORDERİNG`