Unknown column 'rubro_producto' in 'where clause' SELECT tipo_producto_id, tipo_producto_nombre, tipo_producto_padre_nombre, tipo_producto_meta_desc, tipo_producto_meta_keywords FROM tipo_producto INNER JOIN tipo_producto_padre ON tipo_producto_padre.tipo_producto_padre_id = tipo_producto.tipo_producto_padre_id WHERE tipo_producto_id = 60/rubro_producto/56 AND tipo_producto_habilitado = 1