Unknown column 'deposito2.gif' in 'where clause': SELECT * FROM blog_posts WHERE subcategoria_id = deposito2.gif