You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT rcc.*, rc.* from LK_Resource_Categories rcc LEFT JOIN LK_Resources rc ON (rc.rcCategory = rcc.categoryID AND rc.rcStatus = 'enabled') WHERE rcc.categoryID =