Database Error

Error Message:
--------------------------------------------------------
Invalid MySQL: SELECT COUNT(*) AS total FROM data as data ,datacat as datacat WHERE ((data.catid = ) OR (FIND_IN_SET(, datacat.parentlist))) AND data.catid = datacat.catid
--------------------------------------------------------


--------------------------------------------------------

--------------------------------------------------------
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 ') OR (FIND_IN_SET(, datacat.parentlist))) AND data.catid = da
--------------------------------------------------------

Error Number: [ 1064 ]