Select c.* from `comic` c left join `comic_dmca` cd on c.`comic_id` = cd.`comic_id` where 1 and ( cd.status_id = 1 or cd.status_id is null ) and ( cd.site_id = "3" or cd.site_id is null ) and c.`comic_id` = "963116" and c.`status_id` = 0 and c.`is_deleted` = 0 limit 1