Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "a3hrdr9ap9n7c7iaa84m50i2d0"