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