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