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