Unable to read database.

SELECT COUNT(DISTINCT `resourcemiscId`) AS `count` FROM `WKX_resource_misc` WHERE (`resourcemiscId` = )

--> (You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1)