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 `diocese_id`=0 and `day`=8 and a.Weekend_Flag=1' at line 4

SELECT `a`.`time`, `b`.`name` FROM (`tbl_masstimes` a) JOIN `tbl_masstype` b ON `b`.`id` = `a`.`type_id` WHERE `OrganizationID`= and `diocese_id`=0 and `day`=8 and a.Weekend_Flag=1