Unknown column 'homologado.jpg' in 'where clause': SELECT * FROM blog_posts WHERE subcategoria_id = homologado.jpg