################################################################ [ Erro ] ################################################################

Erro PDO - sqlQuery - Bloco Select

SQLSTATE[42000]: Syntax error or access violation: 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 'S COIFFEUR%' GROUP BY cms_mat.id_mat ORDER BY cms_mat.mat_pos DESC ' at line 1Parâmetros Enviados:
counter_tipo = 2
:id_area_pos = 1
:id_lang = 1
:mat_status = 1
:id_estru = 15
:mat_destaque = 4



Página: /home/aabbrio/public_html/index.php

Linha: 66

Query:

SELECT cms_mat.id_mat, cms_mat.id_estru, cms_mat.mat_data, cms_mat.mat_titulo, cms_mat.mat_chamada, cms_mat.mat_banner, SUM(cms_counter.counter_qtd) AS counter_qtd FROM cms_mat LEFT JOIN cms_counter ON cms_counter.counter_pk = cms_mat.id_mat AND cms_counter.counter_tipo = :counter_tipo AND cms_counter.counter_ano = '2020' LEFT JOIN admin_tag ON admin_tag.id_externo = cms_mat.id_mat AND admin_tag.id_tag_tipo = 2 WHERE cms_mat.id_area_pos = :id_area_pos AND cms_mat.id_lang = :id_lang AND cms_mat.mat_status = :mat_status AND cms_mat.id_estru = :id_estru AND cms_mat.mat_destaque = :mat_destaque AND admin_tag.tag_nome LIKE '%LAGOA'S COIFFEUR%' GROUP BY cms_mat.id_mat ORDER BY cms_mat.mat_pos DESC LIMIT 1


################################################################## [ Variáveis ] ##################################################################