Unknown column 'main.js' in 'where clause': SELECT * FROM blog_posts WHERE subcategoria_id = main.js