Unable to read database.

SELECT `WKX_resource`.`id` AS `resourceId` FROM (`WKX_resource`) LEFT JOIN (`WKX_resource_abstract`) ON `WKX_resource`.`id`=`WKX_resource_abstract`.`id` LEFT JOIN (`WKX_resource_note`) ON `WKX_resource`.`id`=`WKX_resource_note`.`id` LEFT JOIN (`WKX_resource_quote`) ON `WKX_resource`.`id`=`WKX_resource_quote`.`resourceId` LEFT JOIN (`WKX_resource_quote_text`) ON `WKX_resource_quote`.`id`=`WKX_resource_quote_text`.`id` LEFT JOIN (`WKX_resource_quote_comment`) ON `WKX_resource_quote`.`id`=`WKX_resource_quote_comment`.`quoteId` LEFT JOIN (`WKX_resource_paraphrase`) ON `WKX_resource`.`id`=`WKX_resource_paraphrase`.`resourceId` LEFT JOIN (`WKX_resource_paraphrase_text`) ON `WKX_resource_paraphrase`.`id`=`WKX_resource_paraphrase_text`.`id` LEFT JOIN (`WKX_resource_paraphrase_comment`) ON `WKX_resource_paraphrase`.`id`=`WKX_resource_paraphrase_comment`.`paraphraseId` LEFT JOIN (`WKX_resource_musing`) ON `WKX_resource`.`id`=`WKX_resource_musing`.`resourceId` LEFT JOIN (`WKX_resource_musing_text`) ON `WKX_resource_musing`.`id`=`WKX_resource_musing_text`.`id` WHERE (`WKX_resource_abstract`.`abstract` LIKE '%\[cite\]707\[%' OR `WKX_resource_abstract`.`abstract` LIKE '%\[cite\]707:%' OR `WKX_resource_abstract`.`abstract` LIKE '%\[cite\]707|%' OR `WKX_resource_note`.`text` LIKE '%\[cite\]707\[%' OR `WKX_resource_note`.`text` LIKE '%\[cite\]707:%' OR `WKX_resource_note`.`text` LIKE '%\[cite\]707|%' OR `WKX_resource_quote_text`.`text` LIKE '%\[cite\]707\[%' OR `WKX_resource_quote_text`.`text` LIKE '%\[cite\]707:%' OR `WKX_resource_quote_text`.`text` LIKE '%\[cite\]707|%' OR `WKX_resource_quote_comment`.`comment` LIKE '%\[cite\]707\[%' OR `WKX_resource_quote_comment`.`comment` LIKE '%\[cite\]707:%' OR `WKX_resource_quote_comment`.`comment` LIKE '%\[cite\]707|%' OR `WKX_resource_paraphrase_text`.`text` LIKE '%\[cite\]707\[%' OR `WKX_resource_paraphrase_text`.`text` LIKE '%\[cite\]707:%' OR `WKX_resource_paraphrase_text`.`text` LIKE '%\[cite\]707|%' OR `WKX_resource_paraphrase_comment`.`comment` LIKE '%\[cite\]707\[%' OR `WKX_resource_paraphrase_comment`.`comment` LIKE '%\[cite\]707:%' OR `WKX_resource_paraphrase_comment`.`comment` LIKE '%\[cite\]707|%' OR `WKX_resource_musing_text`.`text` LIKE '%\[cite\]707\[%' OR `WKX_resource_musing_text`.`text` LIKE '%\[cite\]707:%' OR `WKX_resource_musing_text`.`text` LIKE '%\[cite\]707|%') AND (`WKX_resource`.`id` != '707')