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