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