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