diff --git a/pandora_console/operation/events/events.build_query.php b/pandora_console/operation/events/events.build_query.php index efb8fb4622..aca3603f8c 100755 --- a/pandora_console/operation/events/events.build_query.php +++ b/pandora_console/operation/events/events.build_query.php @@ -240,9 +240,9 @@ if (!empty($tag_with)) { $sql_post .= " OR "; $sql_post .= "tags LIKE '" . tags_get_name($id_tag) . ",%'"; $sql_post .= " OR "; - $sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . "'"; + $sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . "'"; $sql_post .= " OR "; - $sql_post .= "tags LIKE '%, " . tags_get_name($id_tag) . ",%'"; + $sql_post .= "tags LIKE '%," . tags_get_name($id_tag) . ",%'"; } $sql_post .= ' ) '; }