MySQL_class: Database Error occured!

 CODE: 1064
 DESC: 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
 FILE: index.php
QUERY: select cat.* from tbl_category cat inner join tbl_mastercategory rcat on rcat.fld_category_id=cat.fld_rootcat_id where cat.fld_category_status=1 and cat.fld_rootcat_id=
 QCNT: 2
 INFO: QueryResult('select cat.* from tbl_category cat inner join tbl_mastercategory rcat on rcat.fld_category_id=cat.fld_rootcat_id where cat.fld_category_status=1 and cat.fld_rootcat_id=') failed!

Please inform sunnyrajkum@gmail.com about this problem.
PHP v5.4.45 / MySQL Class v0.36