SELECT COUNT ( DISTINCTROW `mantis_bug_table` . `id` ) FROM `mantis_bug_table` JOIN `mantis_project_table` ON `mantis_project_table` . `id` = `mantis_bug_table` . `project_id` LEFT JOIN `mantis_bugnote_table` `visible_bugnote` ON `mantis_bug_table` . `id` = `visible_bugnote` . `bug_id` JOIN `mantis_bug_text_table` ON `mantis_bug_table` . `bug_text_id` = `mantis_bug_text_table` . `id` LEFT JOIN `mantis_bugnote_text_table` ON `visible_bugnote` . `bugnote_text_id` = `mantis_bugnote_text_table` . `id` LEFT JOIN `mantis_bug_tag_table` `bug_tag_alias_any` ON `bug_tag_alias_any` . `bug_id` = `mantis_bug_table` . `id` AND `bug_tag_alias_any` . `tag_id` = ? WHERE `mantis_project_table` . `enabled` = ? AND ( `mantis_bug_table` . `project_id` = ? ) AND ( `mantis_bug_table` . `handler_id` = ? AND ( ( `mantis_bug_table` . `summary` LIKE ? OR `mantis_bug_text_table` . `description` LIKE ? OR `mantis_bug_text_table` . `steps_to_reproduce` LIKE ? OR `mantis_bug_text_table` . `additional_information` LIKE ? OR `mantis_bugnote_text_table` . `note` LIKE ? ) AND 