Notice: Undefined index: fab_id in /var/www/smartmoveis/wp-content/themes/envo-ecommerce/fabricante-detalhe.php on line 21

Erro no banco de dados do WordPress: [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 '' at line 2]
select post_title,id,post_excerpt from wp_posts where id=


Notice: Undefined index: fab_id in /var/www/smartmoveis/wp-content/themes/envo-ecommerce/fabricante-detalhe.php on line 60

Erro no banco de dados do WordPress: [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 ')' at line 5]
select distinct post_title, id from wp_posts p inner join wp_postmeta m on m.post_id = p.id where post_type= 'smart_catalog' and post_status = 'publish' and post_title <> '' and exists (select * from wp_postmeta where meta_key = 'fabricante' and post_id = m.post_id and meta_value = )