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