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