A Database Error Occurred

Error Number: 1064

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 fld_isDeleted = 0 AND fld_status = 0' at line 1

SELECT AVG(`fld_rating`) AS `avrage` FROM `tbl_comment` WHERE 1=1 AND fld_bid = AND fld_isDeleted = 0 AND fld_status = 0

Filename: models/Common_model.php

Line Number: 204