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 'and itf_rating.status=1 order by itf_rating.id desc' at line 1
 FILE: index.php
QUERY: select itf_rating.*, itf_user.f_name, itf_user.l_name from itf_rating inner join itf_user on itf_user.id=itf_rating.user_id where itf_rating.product_id= and itf_rating.status=1 order by itf_rating.id desc
 QCNT: 7
 INFO: QueryResult('select itf_rating.*, itf_user.f_name, itf_user.l_name from itf_rating inner join itf_user on itf_user.id=itf_rating.user_id where itf_rating.product_id= and itf_rating.status=1 order by itf_rating.id desc') failed!

Please inform info@websneed.com about this problem.
PHP v5.6.40 / MySQL Class v0.36