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