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