DeBe Error

An error has occurred, please see below for details:

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 COUNT(1) AS numrec FROM company a LEFT JOIN postcode b ON a.postarea = b.postcode  INNER JOIN company_to_category ON company_to_category.company_id = a.id AND company_to_category.company_category_id =  

Logging is enabled, the log file is writable and the write was successful.