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