Unable to read database.

SELECT `WKX_resource`.`id` AS `resourceId`, `type`, `title`, `shortTitle`, `doi`, `subtitle`, `noSort`, `url`, `isbn`, `field1`, `field2`, `field3`, `field4`, `field5`, `field6`, `field7`, `field8`, `field9`, `transTitle`, `transSubtitle`, `transNoSort`, `bibtexKey`, `collection`, `publisher`, `miscField1`, `miscField2`, `miscField3`, `miscField4`, `miscField5`, `miscField6`, `tag`, `addUserIdResource`, `editUserIdResource`, `accesses`, `attachDownloads`, `maturityIndex`, `peerReviewed`, `year1`, `year2`, `year3`, `year4`, `pageStart`, `pageEnd`, `creator1`, `creator2`, `creator3`, `creator4`, `creator5`, `quotes`, `paraphrases`, `musings`, `publisherName`, `publisherLocation`, `publisherType`, `collectionTitle`, `collectionTitleShort`, `collectionType`, `collectionString`, `WKX_resource_timestamp`.`timestamp` AS `timestamp`, `WKX_resource_timestamp`.`timestampAdd` AS `timestampAdd`, `surname` FROM (`WKX_resource`) LEFT JOIN (`WKX_resource_misc`) ON `WKX_resource`.`id`=`WKX_resource_misc`.`id` LEFT JOIN (`WKX_resource_year`) ON `WKX_resource`.`id`=`WKX_resource_year`.`id` LEFT JOIN (`WKX_resource_page`) ON `WKX_resource`.`id`=`WKX_resource_page`.`id` LEFT JOIN (`WKX_resource_creator`) ON `WKX_resource`.`id`=`WKX_resource_creator`.`id` LEFT JOIN (`WKX_resource_summary`) ON `WKX_resource`.`id`=`WKX_resource_summary`.`id` LEFT JOIN (`WKX_resource_note`) ON `WKX_resource`.`id`=`WKX_resource_note`.`id` LEFT JOIN (`WKX_publisher`) ON `publisher`=`WKX_publisher`.`id` LEFT JOIN (`WKX_collection`) ON `collection`=`WKX_collection`.`id` LEFT JOIN (`WKX_resource_timestamp`) ON `WKX_resource_timestamp`.`id`=`WKX_resource`.`id` LEFT JOIN (`WKX_creator`) ON `WKX_creator`.`id`=COALESCE(COALESCE(`creator1`,`creator2`)) LEFT JOIN (`WKX_resource_keyword`) ON `WKX_resource`.`id`=`WKX_resource_keyword`.`id` LEFT JOIN (`WKX_resource_category`) ON `WKX_resource_category`.`id`=`WKX_resource_keyword`.`id` WHERE FIND_IN_SET('26', CONCAT(`keywords`, ',')) AND FIND_IN_SET('17', CONCAT(`categories`, ',')) ORDER BY IF(`surname` IS NOT NULL, `surname`, REPLACE(REPLACE(REPLACE(REPLACE(`title`, '{', ''), '}', '') , '"', ''), '\'', '')) ASC, `firstname`, COALESCE(`year1`, `year2`, `year3`)